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
a00952bc
Unverified
Commit
a00952bc
authored
Jul 12, 2019
by
jjsjann123
Committed by
GitHub
Jul 12, 2019
Browse files
Merge pull request #391 from NVIDIA/persistent_sync_bn_group8_fix
Fixing rank mapping for bn_group size == 8
parents
1483f22d
89ae9e54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
apex/contrib/groupbn/batch_norm.py
apex/contrib/groupbn/batch_norm.py
+2
-2
No files found.
apex/contrib/groupbn/batch_norm.py
View file @
a00952bc
...
...
@@ -184,8 +184,8 @@ class BatchNorm2d_NHWC(_BatchNorm):
self
.
pair_data2
=
bnp
.
get_remote_data_ptr
(
self
.
pair_handle2
,
pair_offset2
)
if
bn_group
>
4
:
self
.
pair_handle3
=
handles_l
[
local_rank
^
3
].
cpu
().
contiguous
()
pair_offset3
=
offsets_l
[
local_rank
^
3
].
cpu
()
self
.
pair_handle3
=
handles_l
[
local_rank
^
4
].
cpu
().
contiguous
()
pair_offset3
=
offsets_l
[
local_rank
^
4
].
cpu
()
self
.
pair_data3
=
bnp
.
get_remote_data_ptr
(
self
.
pair_handle3
,
pair_offset3
)
#FIXME: get magic value into C code and eliminate from here
...
...
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