Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
c6d84856
Commit
c6d84856
authored
Nov 13, 2018
by
Paul
Browse files
Dont always insert multi broadcast when its not necessary
parent
803eb3ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+4
-1
No files found.
src/onnx/onnx.cpp
View file @
c6d84856
...
...
@@ -113,7 +113,7 @@ struct onnx_parser
}
return
prog
.
add_instruction
(
x
,
args
);
}
else
else
if
(
args
[
0
]
->
get_shape
()
!=
args
[
1
]
->
get_shape
())
{
// Example:
// s0 = (3,2,4,5) and s1 = (2,1,1)
...
...
@@ -148,6 +148,9 @@ struct onnx_parser
auto
l0
=
prog
.
add_instruction
(
op
::
multibroadcast
{
output_lens
},
args
[
0
]);
auto
l1
=
prog
.
add_instruction
(
op
::
multibroadcast
{
output_lens
},
args
[
1
]);
return
prog
.
add_instruction
(
x
,
l0
,
l1
);
}
else
{
return
prog
.
add_instruction
(
x
,
args
);
}
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment