提交 5c84305f 编写于 作者: M Megvii Engine Team

fix(imperative): fix broadcast extra assert of output shape

GitOrigin-RevId: e8dc7c4229faad25760d313a90ae8d87d13998d2
上级 7790040e
......@@ -290,7 +290,6 @@ std::tuple<SmallVector<LogicalTensorDesc>, bool> infer_output_attrs_fallible(
}
}
if (op.axis != opr::Reshape::Param::INVALID_AXIS) {
mgb_assert(out_shape[op.axis] == -1);
out_shape[op.axis] = 1;
mgb_assert(
src.layout.total_nr_elems() % out_shape.total_nr_elems() == 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册