未验证 提交 e98875b0 编写于 作者: W wanghuancoder 提交者: GitHub

refine add_n (#57003)

上级 e53afe54
......@@ -182,7 +182,6 @@ void AddN_Op::Build(ir::Builder &builder,
VLOG(4) << "Builder construction outputs";
ir::VectorType inputs = inputs_.type().dyn_cast<ir::VectorType>();
(void)inputs;
std::vector<phi::DenseTensor> vec_dense_inputs;
for (size_t i = 0; i < static_cast<size_t>(inputs.size()); i++) {
vec_dense_inputs.push_back(phi::DenseTensor(
......@@ -311,7 +310,6 @@ void AddNWithKernelOp::Build(ir::Builder &builder,
VLOG(4) << "Builder construction outputs";
ir::VectorType inputs = inputs_.type().dyn_cast<ir::VectorType>();
(void)inputs;
std::vector<phi::DenseTensor> vec_dense_inputs;
for (size_t i = 0; i < static_cast<size_t>(inputs.size()); i++) {
vec_dense_inputs.push_back(phi::DenseTensor(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册