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
69977052
Commit
69977052
authored
Aug 22, 2022
by
Ted Themistokleous
Browse files
Only check types are equal, leave size checks till later.
parent
8b08a86f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/onnx/parse_if.cpp
src/onnx/parse_if.cpp
+1
-2
No files found.
src/onnx/parse_if.cpp
View file @
69977052
...
@@ -70,8 +70,7 @@ struct parse_if : op_parser<parse_if>
...
@@ -70,8 +70,7 @@ struct parse_if : op_parser<parse_if>
// Must have the same type for both if/else blocks by onnx spec
// Must have the same type for both if/else blocks by onnx spec
// Add exception for empty constant scalars
// Add exception for empty constant scalars
if
(
then_out_shapes
.
at
(
0
).
type
()
!=
else_out_shapes
.
at
(
0
).
type
()
&&
if
(
then_out_shapes
.
at
(
0
).
type
()
!=
else_out_shapes
.
at
(
0
).
type
())
(
then_out_shapes
.
at
(
0
).
elements
()
>
0
)
&&
(
else_out_shapes
.
at
(
0
).
elements
()
>
0
))
{
{
MIGRAPHX_THROW
(
"PARSE_IF: "
+
info
.
name
+
MIGRAPHX_THROW
(
"PARSE_IF: "
+
info
.
name
+
" then and else sub_grahps must have same output type! "
+
" then and else sub_grahps must have same output type! "
+
...
...
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