"src/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "09887246bb60d3fe5c2032fb8884d6b32ecf5241"
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 ...@@ -7,6 +7,7 @@ from torch.autograd import Function
from torch.autograd.function import once_differentiable from torch.autograd.function import once_differentiable
from torch.nn.modules.utils import _pair, _single from torch.nn.modules.utils import _pair, _single
from mmcv.utils import deprecated_api_warning
from ..cnn import CONV_LAYERS from ..cnn import CONV_LAYERS
from ..utils import ext_loader, print_log from ..utils import ext_loader, print_log
...@@ -171,6 +172,8 @@ deform_conv2d = DeformConv2dFunction.apply ...@@ -171,6 +172,8 @@ deform_conv2d = DeformConv2dFunction.apply
class DeformConv2d(nn.Module): class DeformConv2d(nn.Module):
@deprecated_api_warning({'deformable_groups': 'deform_groups'},
cls_name='DeformConv2d')
def __init__(self, def __init__(self,
in_channels, in_channels,
out_channels, out_channels,
......
...@@ -6,6 +6,7 @@ from torch.autograd import Function ...@@ -6,6 +6,7 @@ from torch.autograd import Function
from torch.autograd.function import once_differentiable from torch.autograd.function import once_differentiable
from torch.nn.modules.utils import _pair, _single from torch.nn.modules.utils import _pair, _single
from mmcv.utils import deprecated_api_warning
from ..cnn import CONV_LAYERS from ..cnn import CONV_LAYERS
from ..utils import ext_loader, print_log from ..utils import ext_loader, print_log
...@@ -147,6 +148,8 @@ modulated_deform_conv2d = ModulatedDeformConv2dFunction.apply ...@@ -147,6 +148,8 @@ modulated_deform_conv2d = ModulatedDeformConv2dFunction.apply
class ModulatedDeformConv2d(nn.Module): class ModulatedDeformConv2d(nn.Module):
@deprecated_api_warning({'deformable_groups': 'deform_groups'},
cls_name='ModulatedDeformConv2d')
def __init__(self, def __init__(self,
in_channels, in_channels,
out_channels, out_channels,
......
# Copyright (c) Open-MMLab. All rights reserved. # 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