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
aee3164f
Commit
aee3164f
authored
Aug 03, 2022
by
Ted Themistokleous
Browse files
Add more verbose loggign for if_op shape errors
parent
98bf0b8b
Changes
1
Hide 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 @
aee3164f
...
@@ -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