We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d6978e commit c6e04a5Copy full SHA for c6e04a5
mmcv/ops/csrc/pytorch/npu/roi_pool_npu.cpp
@@ -70,7 +70,7 @@ void roi_pool_backward_npu(Tensor grad_output, Tensor rois, Tensor argmax,
70
.Attr("spatial_scale_w", spatial_scale)
71
.Attr("pool_channel", pooled_channel)
72
.Run();
73
- at::Tensor res = NpuUtils::format_contiguous(y);
+ at::Tensor res = y.contiguous();
74
grad_input.copy_(res);
75
}
76
0 commit comments