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
21991697
Commit
21991697
authored
Mar 11, 2019
by
Khalique
Browse files
Merge branch 'develop' of
https://github.com/ROCmSoftwarePlatform/AMDMIGraphX
into tf_pb_py
parents
7faa706b
154f21f6
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 @
21991697
...
@@ -157,7 +157,7 @@ struct onnx_parser
...
@@ -157,7 +157,7 @@ struct onnx_parser
template
<
class
T
>
template
<
class
T
>
instruction_ref
add_broadcastable_binary_op
(
instruction_ref
arg0
,
instruction_ref
arg1
,
T
x
)
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:
// Example:
// s0 = (3,2,4,5) and s1 = (2,1,1)
// s0 = (3,2,4,5) and s1 = (2,1,1)
...
...
src/tf/tf.cpp
View file @
21991697
...
@@ -167,7 +167,7 @@ struct tf_parser
...
@@ -167,7 +167,7 @@ struct tf_parser
template
<
class
T
>
template
<
class
T
>
instruction_ref
add_broadcastable_binary_op
(
instruction_ref
arg0
,
instruction_ref
arg1
,
T
x
)
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:
// Example:
// s0 = (3,2,4,5) and s1 = (2,1,1)
// 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