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
0506fe36
Unverified
Commit
0506fe36
authored
Sep 02, 2021
by
Thor Johnsen
Committed by
GitHub
Sep 02, 2021
Browse files
Merge pull request #1159 from NVIDIA/more_bug_fixes
Bug fixes
parents
0cb1cb3b
8c4a0075
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apex/contrib/bottleneck/bottleneck.py
apex/contrib/bottleneck/bottleneck.py
+1
-1
No files found.
apex/contrib/bottleneck/bottleneck.py
View file @
0506fe36
...
@@ -354,7 +354,7 @@ class SpatialBottleneckFunction(torch.autograd.Function):
...
@@ -354,7 +354,7 @@ class SpatialBottleneckFunction(torch.autograd.Function):
btm_halo
=
all_halos
[
ctx
.
local_rank
+
1
][:,:
1
,:,:]
btm_halo
=
all_halos
[
ctx
.
local_rank
+
1
][:,:
1
,:,:]
fat_halo
[:,:
2
,:,:].
copy_
(
grad_out2
[:,
Hs
-
2
:,:,:])
fat_halo
[:,:
2
,:,:].
copy_
(
grad_out2
[:,
Hs
-
2
:,:,:])
fat_halo
[:,
2
:,:,:].
copy_
(
btm_halo
)
fat_halo
[:,
2
:,:,:].
copy_
(
btm_halo
)
relu_halo
[:,:
2
,:,:].
copy_
(
relu1
[:,
Hs
-
2
,:,:])
relu_halo
[:,:
2
,:,:].
copy_
(
relu1
[:,
Hs
-
2
:
,:,:])
relu_halo
[:,
2
:,:,:].
zero_
()
relu_halo
[:,
2
:,:,:].
zero_
()
btm_grad_out1_halo
=
fast_bottleneck
.
backward_grad_out1_halo
(
ctx
.
nhwc
,
ctx
.
stride_1x1
,
t_list
,
grads
,
fat_halo
,
relu_halo
)
btm_grad_out1_halo
=
fast_bottleneck
.
backward_grad_out1_halo
(
ctx
.
nhwc
,
ctx
.
stride_1x1
,
t_list
,
grads
,
fat_halo
,
relu_halo
)
btm_grad_out1_halo
=
btm_grad_out1_halo
[:,
1
:
2
,:,:]
btm_grad_out1_halo
=
btm_grad_out1_halo
[:,
1
:
2
,:,:]
...
...
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