提交 275f12c9 编写于 作者: M Megvii Engine Team

fix(mge): fix dimshuffle shape infer

GitOrigin-RevId: ad7a73fbd1670aad926772d58b6e31fe52eeb448
上级 e59b6e13
......@@ -81,6 +81,7 @@ std::tuple<SmallVector<LogicalTensorDesc>, bool> infer_output_attrs_fallible(
src.layout.ndim);
size_t idx = 0;
bool input_used[TensorLayout::MAX_NDIM] = {0};
out_shape.ndim = ds.pattern.size();
for (auto i : ds.pattern) {
if (i < 0) {
out_shape[idx] = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册