未验证 提交 f7034613 编写于 作者: W wenbin 提交者: GitHub

refix if-else logic for inference: missing if (#33531)

上级 a43e1fac
......@@ -303,7 +303,9 @@ static void DisablePrepareDataOpt(
disable_opt || pre_disable_opt);
}
// disable prepare data if unfriendly op is found
disable_opt = IsPrepareDataOptTargetOp(op);
if (!disable_opt) {
disable_opt = IsPrepareDataOptTargetOp(op);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册