Commit aee3164f authored by Ted Themistokleous's avatar Ted Themistokleous
Browse files

Add more verbose loggign for if_op shape errors

parent 98bf0b8b
......@@ -54,7 +54,8 @@ struct if_op
if(not std::equal(
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};
......
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