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
apex
Commits
e6cb749b
Commit
e6cb749b
authored
Sep 13, 2019
by
Youngjin Kim
Committed by
mcarilli
Sep 12, 2019
Browse files
Fixed error in convert_syncbn_model function (#380)
parent
ad98cc5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
apex/parallel/__init__.py
apex/parallel/__init__.py
+1
-0
No files found.
apex/parallel/__init__.py
View file @
e6cb749b
...
@@ -43,6 +43,7 @@ def convert_syncbn_model(module, process_group=None, channel_last=False):
...
@@ -43,6 +43,7 @@ def convert_syncbn_model(module, process_group=None, channel_last=False):
mod
=
SyncBatchNorm
(
module
.
num_features
,
module
.
eps
,
module
.
momentum
,
module
.
affine
,
module
.
track_running_stats
,
process_group
,
channel_last
=
channel_last
)
mod
=
SyncBatchNorm
(
module
.
num_features
,
module
.
eps
,
module
.
momentum
,
module
.
affine
,
module
.
track_running_stats
,
process_group
,
channel_last
=
channel_last
)
mod
.
running_mean
=
module
.
running_mean
mod
.
running_mean
=
module
.
running_mean
mod
.
running_var
=
module
.
running_var
mod
.
running_var
=
module
.
running_var
mod
.
num_batches_tracked
=
module
.
num_batches_tracked
if
module
.
affine
:
if
module
.
affine
:
mod
.
weight
.
data
=
module
.
weight
.
data
.
clone
().
detach
()
mod
.
weight
.
data
=
module
.
weight
.
data
.
clone
().
detach
()
mod
.
bias
.
data
=
module
.
bias
.
data
.
clone
().
detach
()
mod
.
bias
.
data
=
module
.
bias
.
data
.
clone
().
detach
()
...
...
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