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
07e42152
Unverified
Commit
07e42152
authored
Jul 17, 2020
by
Jerry Jiarui XU
Committed by
GitHub
Jul 17, 2020
Browse files
Fixed group of syncbn (#427)
parent
4a044c64
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mmcv/ops/sync_bn.py
mmcv/ops/sync_bn.py
+2
-1
No files found.
mmcv/ops/sync_bn.py
View file @
07e42152
...
@@ -126,7 +126,8 @@ class SyncBatchNorm(Module):
...
@@ -126,7 +126,8 @@ class SyncBatchNorm(Module):
self
.
momentum
=
momentum
self
.
momentum
=
momentum
self
.
affine
=
affine
self
.
affine
=
affine
self
.
track_running_stats
=
track_running_stats
self
.
track_running_stats
=
track_running_stats
self
.
group
=
dist
.
group
.
WORLD
if
group
is
None
else
group
group
=
dist
.
group
.
WORLD
if
group
is
None
else
group
self
.
group
=
group
self
.
group_size
=
dist
.
get_world_size
(
group
)
self
.
group_size
=
dist
.
get_world_size
(
group
)
if
self
.
affine
:
if
self
.
affine
:
self
.
weight
=
Parameter
(
torch
.
Tensor
(
num_features
))
self
.
weight
=
Parameter
(
torch
.
Tensor
(
num_features
))
...
...
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