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
e612b60c
Commit
e612b60c
authored
Oct 28, 2022
by
Ted Themistokleous
Browse files
Avoid unneeded nesting
parent
881a4bd4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
58 deletions
+60
-58
src/onnx/parse_if.cpp
src/onnx/parse_if.cpp
+60
-58
No files found.
src/onnx/parse_if.cpp
View file @
e612b60c
...
...
@@ -115,8 +115,11 @@ struct parse_if : op_parser<parse_if>
else_out_shape
.
type_string
());
}
if
(
not
then_out_shape
.
dynamic
()
and
not
else_out_shape
.
dynamic
())
if
(
then_out_shape
.
dynamic
()
or
else_out_shape
.
dynamic
())
{
continue
;
}
auto
then_lens
=
then_out_shape
.
lens
();
auto
else_lens
=
else_out_shape
.
lens
();
...
...
@@ -185,7 +188,6 @@ struct parse_if : op_parser<parse_if>
throw_shapes
();
}
}
}
auto
if_ret
=
info
.
add_instruction
(
make_op
(
"if"
),
args
,
{
then_mdl
,
else_mdl
});
auto
out_s
=
if_ret
->
get_shape
();
...
...
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