未验证 提交 6a2da84c 编写于 作者: R risemeup1 提交者: GitHub

fix gcc12 error (#49452)

上级 b90c988c
......@@ -127,7 +127,7 @@ void sum_grad(const Tensor& x,
if (!x_grad) {
return;
}
std::vector<int> x_dim = phi::vectorize<int>(x.dims());
std::vector<int64_t> x_dim = phi::vectorize<int64_t>(x.dims());
int64_t axis_size = axis.size();
int64_t x_dim_size = x_dim.size();
reduce_all = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册