Skip to content

Commit

Permalink
add nms_rotated adpated torch2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
momo609 committed Sep 14, 2023
1 parent b361a81 commit 56111ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmcv/ops/csrc/pytorch/nms_rotated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Tensor nms_rotated(const Tensor dets, const Tensor scores, const Tensor order,
#else
AT_ERROR("Not compiled with GPU support");
#endif
} else if (dets.device().type() == at::kXLA) {
} else if (dets.device().type() == at::kXLA || dets.device().type() == at::kPrivateUse1) {
#ifdef MMCV_WITH_NPU
return nms_rotated_npu(dets, scores, labels, iou_threshold);
#else
Expand Down

0 comments on commit 56111ee

Please sign in to comment.