Skip to content

Commit

Permalink
fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
momo609 committed May 30, 2024
1 parent 50a3552 commit 97715d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmcv/ops/csrc/pytorch/npu/roi_pool_npu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void roi_pool_backward_npu(Tensor grad_output, Tensor rois, Tensor argmax,
.Attr("spatial_scale_w", spatial_scale)
.Attr("pool_channel", pooled_channel)
.Run();
at::Tensor res = NpuUtils::format_contiguous(result);
at::Tensor res = NpuUtils::format_contiguous(y);
grad_input.copy_(res);
}

Expand Down

0 comments on commit 97715d6

Please sign in to comment.