提交 edfd65aa 编写于 作者: W wYann

fix bugs in broadcast_rewrite

上级 df57a6cf
...@@ -80,7 +80,7 @@ class BroadcastVecRewriter : public IRMutator { ...@@ -80,7 +80,7 @@ class BroadcastVecRewriter : public IRMutator {
} }
} }
if (secDimFit && dimFit && forLoopFit) { if (secDimFit && dimFit && forLoopFit && remainDim > 1) {
newExtent = GetInt32Const(GetItem(forInfo.ops_, idx).as<For>()->extent) / remainDim; newExtent = GetInt32Const(GetItem(forInfo.ops_, idx).as<For>()->extent) / remainDim;
tmpBuffer = VarExpr("tmp_broadcast_" + std::to_string(broadBufferCount++) + "_local_UB", dtype); tmpBuffer = VarExpr("tmp_broadcast_" + std::to_string(broadBufferCount++) + "_local_UB", dtype);
varList = dstInfo->var_; varList = dstInfo->var_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册