call `deform_conv2d` from torchvision when possible
Make it easy when compiling environment is not suitable.
This pull request introduces 1 alert when merging 548a79d470a4af4af7e9c9ed64704d887347fd9c into dd7d188b4adaf9b2b6db303e01b4de7c28d2d737 - view on LGTM.com
new alerts:
- 1 for Module is imported with 'import' and 'import from'
thanks for your contribution.
This function has already been implemented in https://github.com/xinntao/BasicSR/blob/ab55f479f26ca28cd03426ef492f83fec4f4c68c/basicsr/archs/arch_util.py#L231-L236
You may check it. Thanks :-)
Thank you for your reply.
I knew that. But my PR will work with all DCN related things instead of DCNv2Pack only. And I think this could be a solution to many DCN compilation issues.
The general dcn from torchvision can be directly called by users, so I choose not to merge this pr. Thanks for your contribution: -)