Skip to content

Commit c6e04a5

Browse files
committed
fix bug.
1 parent 2d6978e commit c6e04a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmcv/ops/csrc/pytorch/npu/roi_pool_npu.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void roi_pool_backward_npu(Tensor grad_output, Tensor rois, Tensor argmax,
7070
.Attr("spatial_scale_w", spatial_scale)
7171
.Attr("pool_channel", pooled_channel)
7272
.Run();
73-
at::Tensor res = NpuUtils::format_contiguous(y);
73+
at::Tensor res = y.contiguous();
7474
grad_input.copy_(res);
7575
}
7676

0 commit comments

Comments
 (0)