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
MMCV
Commits
ae982b28
Unverified
Commit
ae982b28
authored
Dec 21, 2020
by
shilong
Committed by
GitHub
Dec 21, 2020
Browse files
fix grad_output uncontiguous (#737)
* fix grad_output uncontiguous * add comments for uncontiguous
parent
dedd7994
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mmcv/ops/roi_align.py
mmcv/ops/roi_align.py
+2
-1
No files found.
mmcv/ops/roi_align.py
View file @
ae982b28
...
...
@@ -94,7 +94,8 @@ class RoIAlignFunction(Function):
def
backward
(
ctx
,
grad_output
):
rois
,
argmax_y
,
argmax_x
=
ctx
.
saved_tensors
grad_input
=
grad_output
.
new_zeros
(
ctx
.
input_shape
)
# complex head architecture may cause grad_output uncontiguous.
grad_output
=
grad_output
.
contiguous
()
ext_module
.
roi_align_backward
(
grad_output
,
rois
,
...
...
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