Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
5cad35bd
Unverified
Commit
5cad35bd
authored
Sep 18, 2020
by
Ryan Li
Committed by
GitHub
Sep 18, 2020
Browse files
fix deprecated wrappers exiting bug (#567)
parent
cc332b26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mmcv/ops/deprecated_wrappers.py
mmcv/ops/deprecated_wrappers.py
+4
-4
No files found.
mmcv/ops/deprecated_wrappers.py
View file @
5cad35bd
...
...
@@ -7,7 +7,7 @@ from ..cnn.bricks.wrappers import Conv2d, ConvTranspose2d, Linear, MaxPool2d
class
Conv2d_deprecated
(
Conv2d
):
def
__init__
(
*
args
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
,
**
kwargs
)
warnings
.
warn
(
'Importing Conv2d wrapper from "mmcv.ops" will be deprecated in'
...
...
@@ -16,7 +16,7 @@ class Conv2d_deprecated(Conv2d):
class
ConvTranspose2d_deprecated
(
ConvTranspose2d
):
def
__init__
(
*
args
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
,
**
kwargs
)
warnings
.
warn
(
'Importing ConvTranspose2d wrapper from "mmcv.ops" will be '
...
...
@@ -26,7 +26,7 @@ class ConvTranspose2d_deprecated(ConvTranspose2d):
class
MaxPool2d_deprecated
(
MaxPool2d
):
def
__init__
(
*
args
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
,
**
kwargs
)
warnings
.
warn
(
'Importing MaxPool2d wrapper from "mmcv.ops" will be deprecated in'
...
...
@@ -35,7 +35,7 @@ class MaxPool2d_deprecated(MaxPool2d):
class
Linear_deprecated
(
Linear
):
def
__init__
(
*
args
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
,
**
kwargs
)
warnings
.
warn
(
'Importing Linear wrapper from "mmcv.ops" will be deprecated in'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment