未验证 提交 5786f3e4 编写于 作者: iSerendipity's avatar iSerendipity 提交者: GitHub

[Werror] fix Werror-maybe-uninitialized in roi_align_grad_kernel (#51633)

* fix Werror in roi_align_grad_kernel

* adopt a better way
上级 d7035454
......@@ -81,7 +81,7 @@ void RoiAlignGradKernel(const Context& dev_ctx,
int sampling_ratio,
bool aligned,
DenseTensor* dx) {
auto in_dims = x.dims();
const auto& in_dims = x.dims();
int channels = in_dims[1];
int height = in_dims[2];
int width = in_dims[3];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册