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
9b114c15
Unverified
Commit
9b114c15
authored
Mar 31, 2019
by
Bingchen Zhao
Committed by
GitHub
Mar 31, 2019
Browse files
Update optimized_sync_batchnorm_kernel.py
in line 54, running_var should be running_variance..
parent
a8c2b7dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apex/parallel/optimized_sync_batchnorm_kernel.py
apex/parallel/optimized_sync_batchnorm_kernel.py
+1
-1
No files found.
apex/parallel/optimized_sync_batchnorm_kernel.py
View file @
9b114c15
...
...
@@ -51,7 +51,7 @@ class SyncBatchnormFunction(Function):
running_variance
.
data
=
running_variance
.
data
*
(
1
-
momentum
)
+
momentum
*
r_v_inc
else
:
mean
=
running_mean
.
data
inv_std
=
1.0
/
torch
.
sqrt
(
running_var
.
data
+
eps
)
inv_std
=
1.0
/
torch
.
sqrt
(
running_var
iance
.
data
+
eps
)
ctx
.
save_for_backward
(
input
,
weight
,
mean
,
inv_std
)
ctx
.
process_group
=
process_group
...
...
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