Unverified Commit 82a15dfc authored by Cao Yuhang's avatar Cao Yuhang Committed by GitHub
Browse files

compitable dcn old api (#405)

parent 481fdbf3
......@@ -7,6 +7,7 @@ from torch.autograd import Function
from torch.autograd.function import once_differentiable
from torch.nn.modules.utils import _pair, _single
from mmcv.utils import deprecated_api_warning
from ..cnn import CONV_LAYERS
from ..utils import ext_loader, print_log
......@@ -171,6 +172,8 @@ deform_conv2d = DeformConv2dFunction.apply
class DeformConv2d(nn.Module):
@deprecated_api_warning({'deformable_groups': 'deform_groups'},
cls_name='DeformConv2d')
def __init__(self,
in_channels,
out_channels,
......
......@@ -6,6 +6,7 @@ from torch.autograd import Function
from torch.autograd.function import once_differentiable
from torch.nn.modules.utils import _pair, _single
from mmcv.utils import deprecated_api_warning
from ..cnn import CONV_LAYERS
from ..utils import ext_loader, print_log
......@@ -147,6 +148,8 @@ modulated_deform_conv2d = ModulatedDeformConv2dFunction.apply
class ModulatedDeformConv2d(nn.Module):
@deprecated_api_warning({'deformable_groups': 'deform_groups'},
cls_name='ModulatedDeformConv2d')
def __init__(self,
in_channels,
out_channels,
......
# Copyright (c) Open-MMLab. All rights reserved.
__version__ = '1.0.1'
__version__ = '1.0.2'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment