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
9199f074
Commit
9199f074
authored
Aug 22, 2022
by
Ted Themistokleous
Browse files
Fix unsqueeze on parse_if shape checks
parent
69977052
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/onnx/parse_if.cpp
src/onnx/parse_if.cpp
+2
-2
No files found.
src/onnx/parse_if.cpp
View file @
9199f074
...
...
@@ -98,7 +98,7 @@ struct parse_if : op_parser<parse_if>
else_out_shapes
.
at
(
0
).
lens
(),
else_out_shapes
.
at
(
0
).
strides
()};
auto
reshape_ins
=
then_mdl
->
insert_instruction
(
convert_ins
,
migraphx
::
make_op
(
"unsqueeze"
,
{{
"axes"
,
{
0
,
1
}}}),
convert_ins
);
convert_ins
,
migraphx
::
make_op
(
"unsqueeze"
,
{{
"axes"
,
{
1
}}}),
convert_ins
);
then_mdl
->
replace_return
({
reshape_ins
});
}
...
...
@@ -119,7 +119,7 @@ struct parse_if : op_parser<parse_if>
then_out_shapes
.
at
(
0
).
lens
(),
then_out_shapes
.
at
(
0
).
strides
()};
auto
reshape_ins
=
then_mdl
->
insert_instruction
(
convert_ins
,
migraphx
::
make_op
(
"unsqueeze"
,
{{
"axes"
,
{
0
,
1
}}}),
convert_ins
);
convert_ins
,
migraphx
::
make_op
(
"unsqueeze"
,
{{
"axes"
,
{
1
}}}),
convert_ins
);
else_mdl
->
replace_return
({
reshape_ins
});
}
...
...
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