Commit 80fd411b authored by Ted Themistokleous's avatar Ted Themistokleous
Browse files

fixup! Assert if both input lengths are empty to parse_if

parent 638ff250
...@@ -123,7 +123,7 @@ struct parse_if : op_parser<parse_if> ...@@ -123,7 +123,7 @@ struct parse_if : op_parser<parse_if>
auto then_lens = then_out_shape.lens(); auto then_lens = then_out_shape.lens();
auto else_lens = else_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) { auto handle_empty_branch = [](module_ref& mdl, int index, const shape& out_shape) {
shape gen_shape(shape(out_shape.type(), {1}, {0})); shape gen_shape(shape(out_shape.type(), {1}, {0}));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment