提交 2be38102 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!22 fix the bug in broadcast_rewrite.

Merge pull request !22 from wYann/fix_broadcast_rewrite
......@@ -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;
tmpBuffer = VarExpr("tmp_broadcast_" + std::to_string(broadBufferCount++) + "_local_UB", dtype);
varList = dstInfo->var_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册