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
89ae9e54
Commit
89ae9e54
authored
Jul 12, 2019
by
Jie
Browse files
Fixing rank mapping for bn_group size == 8
parent
1483f22d
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 @
89ae9e54
...
@@ -184,8 +184,8 @@ class BatchNorm2d_NHWC(_BatchNorm):
...
@@ -184,8 +184,8 @@ class BatchNorm2d_NHWC(_BatchNorm):
self
.
pair_data2
=
bnp
.
get_remote_data_ptr
(
self
.
pair_handle2
,
pair_offset2
)
self
.
pair_data2
=
bnp
.
get_remote_data_ptr
(
self
.
pair_handle2
,
pair_offset2
)
if
bn_group
>
4
:
if
bn_group
>
4
:
self
.
pair_handle3
=
handles_l
[
local_rank
^
3
].
cpu
().
contiguous
()
self
.
pair_handle3
=
handles_l
[
local_rank
^
4
].
cpu
().
contiguous
()
pair_offset3
=
offsets_l
[
local_rank
^
3
].
cpu
()
pair_offset3
=
offsets_l
[
local_rank
^
4
].
cpu
()
self
.
pair_data3
=
bnp
.
get_remote_data_ptr
(
self
.
pair_handle3
,
pair_offset3
)
self
.
pair_data3
=
bnp
.
get_remote_data_ptr
(
self
.
pair_handle3
,
pair_offset3
)
#FIXME: get magic value into C code and eliminate from here
#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