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
a5d51c01
Commit
a5d51c01
authored
Apr 01, 2022
by
Thor Johnsen
Browse files
Bug fix
parent
8b6f8fc1
Changes
1
Show 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 @
a5d51c01
...
...
@@ -510,7 +510,7 @@ class SpatialBottleneckFunction(torch.autograd.Function):
w1by3
=
w
[:,:
1
,:,:].
clone
()
ctx
.
stream2
.
wait_stream
(
ctx
.
stream1
)
# wait for halo transfers to finish
ctx
.
stream2
.
wait_stream
(
torch
.
cuda
.
current_stream
())
# wait for backward_grad_out1_mask to finish before launching halo correction kernel
with
torch
.
cuda
.
stream
(
ctx
.
stream
1
):
with
torch
.
cuda
.
stream
(
ctx
.
stream
2
):
btm_grad_out1_halo
=
fast_bottleneck
.
backward_grad_out1_halo_corr
(
ctx
.
explicit_nhwc
,
ctx
.
stride_1x1
,
t_list
,
w1by3
,
grads
,
btm_halo
,
btm_relu_halo
,
btm_grad_out1
.
clone
())
btm_grad_out1
.
copy_
(
btm_grad_out1_halo
)
if
ctx
.
spatial_group_rank
>
0
:
...
...
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