未验证 提交 a606db67 编写于 作者: L Leo Chen 提交者: GitHub

fix vector out of range error (#48255)

上级 fd8ec69d
...@@ -878,7 +878,7 @@ void BroadcastKernelForDifferentVecSize( ...@@ -878,7 +878,7 @@ void BroadcastKernelForDifferentVecSize(
const auto dims_simplifier = const auto dims_simplifier =
BroadcastDimsSimplifier(ins, (*outs)[0]->dims(), axis); BroadcastDimsSimplifier(ins, (*outs)[0]->dims(), axis);
if (VLOG_IS_ON(4)) { if (VLOG_IS_ON(4)) {
for (size_t i = 0; i < dims_simplifier.in_dims.size(); ++i) { for (size_t i = 0; i < ins.size(); ++i) {
VLOG(4) << "input i=" << i << ": origin_dims={" << ins[i]->dims() VLOG(4) << "input i=" << i << ": origin_dims={" << ins[i]->dims()
<< "}, simplied_dims={" << "}, simplied_dims={"
<< phi::make_ddim(dims_simplifier.in_dims[i]) << "}"; << phi::make_ddim(dims_simplifier.in_dims[i]) << "}";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册