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
dd6540bd
Commit
dd6540bd
authored
Aug 03, 2022
by
Ted Themistokleous
Committed by
Ted Themistokleous
Oct 04, 2022
Browse files
Add more verbose loggign for if_op shape errors
parent
d799e44e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/include/migraphx/op/if_op.hpp
src/include/migraphx/op/if_op.hpp
+2
-1
No files found.
src/include/migraphx/op/if_op.hpp
View file @
dd6540bd
...
@@ -54,7 +54,8 @@ struct if_op
...
@@ -54,7 +54,8 @@ struct if_op
if
(
not
std
::
equal
(
if
(
not
std
::
equal
(
out_shapes1
.
begin
(),
out_shapes1
.
end
(),
out_shapes0
.
begin
(),
out_shapes0
.
end
()))
out_shapes1
.
begin
(),
out_shapes1
.
end
(),
out_shapes0
.
begin
(),
out_shapes0
.
end
()))
{
{
MIGRAPHX_THROW
(
"IF: output shapes of submodules must be the same."
);
MIGRAPHX_THROW
(
"IF:"
+
mods
[
0
]
->
name
()
+
" & "
+
mods
[
1
]
->
name
()
+
" output shapes of submodules must be the same."
);
}
}
return
{
out_shapes0
};
return
{
out_shapes0
};
...
...
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