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
68708cfb
Unverified
Commit
68708cfb
authored
Jun 19, 2020
by
Harry
Committed by
GitHub
Jun 19, 2020
Browse files
fix: update module wrapper register_module (#357)
parent
12aab3e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mmcv/parallel/registry.py
mmcv/parallel/registry.py
+2
-2
No files found.
mmcv/parallel/registry.py
View file @
68708cfb
...
...
@@ -3,5 +3,5 @@ from torch.nn.parallel import DataParallel, DistributedDataParallel
from
mmcv.utils
import
Registry
MODULE_WRAPPERS
=
Registry
(
'module wrapper'
)
MODULE_WRAPPERS
.
register_module
(
DataParallel
)
MODULE_WRAPPERS
.
register_module
(
DistributedDataParallel
)
MODULE_WRAPPERS
.
register_module
(
module
=
DataParallel
)
MODULE_WRAPPERS
.
register_module
(
module
=
DistributedDataParallel
)
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