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
84028786
Unverified
Commit
84028786
authored
Apr 01, 2019
by
jjsjann123
Committed by
GitHub
Apr 01, 2019
Browse files
Merge pull request #233 from DTennant/patch-1
Fix a typo in optimized_sync_batchnorm_kernel.py
parents
a8c2b7dd
9b114c15
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 @
84028786
...
@@ -51,7 +51,7 @@ class SyncBatchnormFunction(Function):
...
@@ -51,7 +51,7 @@ class SyncBatchnormFunction(Function):
running_variance
.
data
=
running_variance
.
data
*
(
1
-
momentum
)
+
momentum
*
r_v_inc
running_variance
.
data
=
running_variance
.
data
*
(
1
-
momentum
)
+
momentum
*
r_v_inc
else
:
else
:
mean
=
running_mean
.
data
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
.
save_for_backward
(
input
,
weight
,
mean
,
inv_std
)
ctx
.
process_group
=
process_group
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