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
154f21f6
Unverified
Commit
154f21f6
authored
Mar 09, 2019
by
Paul Fultz II
Committed by
GitHub
Mar 09, 2019
Browse files
Merge pull request #206 from ROCmSoftwarePlatform/multibcast_check
remove unnecessary multibroadcasts
parents
3499ec7d
16fc0314
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+1
-1
src/tf/tf.cpp
src/tf/tf.cpp
+1
-1
No files found.
src/onnx/onnx.cpp
View file @
154f21f6
...
...
@@ -157,7 +157,7 @@ struct onnx_parser
template
<
class
T
>
instruction_ref
add_broadcastable_binary_op
(
instruction_ref
arg0
,
instruction_ref
arg1
,
T
x
)
{
if
(
arg0
->
get_shape
()
!=
arg1
->
get_shape
())
if
(
arg0
->
get_shape
()
.
lens
()
!=
arg1
->
get_shape
()
.
lens
()
)
{
// Example:
// s0 = (3,2,4,5) and s1 = (2,1,1)
...
...
src/tf/tf.cpp
View file @
154f21f6
...
...
@@ -167,7 +167,7 @@ struct tf_parser
template
<
class
T
>
instruction_ref
add_broadcastable_binary_op
(
instruction_ref
arg0
,
instruction_ref
arg1
,
T
x
)
{
if
(
arg0
->
get_shape
()
!=
arg1
->
get_shape
())
if
(
arg0
->
get_shape
()
.
lens
()
!=
arg1
->
get_shape
()
.
lens
()
)
{
// Example:
// s0 = (3,2,4,5) and s1 = (2,1,1)
...
...
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