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
80fd411b
"src/vscode:/vscode.git/clone" did not exist on "08360e83dbe62477a9d91f3cc9fe7ecd5a1e000d"
Commit
80fd411b
authored
Nov 04, 2022
by
Ted Themistokleous
Browse files
fixup! Assert if both input lengths are empty to parse_if
parent
638ff250
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/onnx/parse_if.cpp
src/onnx/parse_if.cpp
+1
-1
No files found.
src/onnx/parse_if.cpp
View file @
80fd411b
...
...
@@ -123,7 +123,7 @@ struct parse_if : op_parser<parse_if>
auto
then_lens
=
then_out_shape
.
lens
();
auto
else_lens
=
else_out_shape
.
lens
();
assert
(
not
then_lens
.
empty
()
and
not
else_lens
.
empty
());
assert
(
not
(
then_lens
.
empty
()
and
else_lens
.
empty
())
)
;
auto
handle_empty_branch
=
[](
module_ref
&
mdl
,
int
index
,
const
shape
&
out_shape
)
{
shape
gen_shape
(
shape
(
out_shape
.
type
(),
{
1
},
{
0
}));
...
...
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