Skip to content

Commit

Permalink
update ops.md
Browse files Browse the repository at this point in the history
  • Loading branch information
momo609 committed Mar 20, 2023
1 parent b6834bd commit 01be0e6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/en/understand_mmcv/ops.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ We implement common ops used in detection, segmentation, etc.
| RoIPool | ||| ||
| RoIAlignRotated |||| | |
| RiRoIAlignRotated | || | | |
| RoIAlign |||| | |
| RoIAlign |||| | |
| RoIAwarePool3d | ||| | |
| SAConv2d | || | | |
| SigmoidFocalLoss | ||| ||
Expand Down
2 changes: 1 addition & 1 deletion docs/zh_cn/understand_mmcv/ops.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ MMCV 提供了检测、分割等任务中常用的算子
| RoIPool | ||| ||
| RoIAlignRotated |||| | |
| RiRoIAlignRotated | || | | |
| RoIAlign |||| | |
| RoIAlign |||| | |
| RoIAwarePool3d | ||| | |
| SAConv2d | || | | |
| SigmoidFocalLoss | ||| ||
Expand Down
3 changes: 3 additions & 0 deletions mmcv/ops/csrc/pytorch/npu/roi_align_npu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ void roi_align_forward_npu(Tensor input, Tensor rois, Tensor output,
Tensor argmax_y, Tensor argmax_x, int aligned_height,
int aligned_width, float spatial_scale,
int sampling_ratio, int pool_mode, bool aligned) {
if (!aligned) {
LOG(WARNING) << "The [aligned] attr in roi_align op is false";
}
int64_t aligned_height_64 = aligned_height;
int64_t aligned_width_64 = aligned_width;
int64_t sampling_ratio_64 = sampling_ratio;
Expand Down
9 changes: 2 additions & 7 deletions tests/test_ops/test_roi_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,8 @@ def _test_roialign_allclose(device, dtype):
pytest.param(
torch.double,
marks=pytest.mark.skipif(
IS_MLU_AVAILABLE,
reason='MLU does not support for 64-bit floating point')),
pytest.param(
torch.double,
marks=pytest.mark.skipif(
IS_NPU_AVAILABLE,
reason='NPU does not support for 64-bit floating point')),
IS_MLU_AVAILABLE or IS_NPU_AVAILABLE,
reason='MLU and NPU does not support for 64-bit floating point')),
torch.half
])
def test_roialign(device, dtype):
Expand Down

0 comments on commit 01be0e6

Please sign in to comment.