open-mmlab / mmcv

OpenMMLab Computer Vision Foundation
https://mmcv.readthedocs.io/en/latest/
Apache License 2.0
5.91k stars 1.65k forks source link

[Fix] Fix deform_conv.py for torch_npu v2.1 #2967

Closed shun001 closed 1 year ago

shun001 commented 1 year ago

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

fix deform_conv.py for torch_npu v2.1.

Modification

fix deform_conv.py for torch_npu v2.1.

BC-breaking (Optional)

Does the modification introduce changes that break the backward-compatibility of the downstream repositories? No.

Use cases (Optional)

The verification has been performed on the npu device.

Checklist

Before PR:

After PR:

Ginray commented 1 year ago

/lgtm