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
47962467
Unverified
Commit
47962467
authored
May 11, 2021
by
Yosuke Shinya
Committed by
GitHub
May 11, 2021
Browse files
[Fix] Fix DCN fp16 (#1014)
* [Fix] Fix DCN fp16 * add comment
parent
f61295d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
mmcv/ops/deform_conv.py
mmcv/ops/deform_conv.py
+3
-0
No files found.
mmcv/ops/deform_conv.py
View file @
47962467
...
...
@@ -70,6 +70,9 @@ class DeformConv2dFunction(Function):
ctx
.
deform_groups
=
deform_groups
ctx
.
im2col_step
=
im2col_step
# until the code is modified for torch.cuda.amp.autocast,
# we need to cast weight to avoid type mismatch in fp16 training
weight
=
weight
.
type_as
(
input
)
ctx
.
save_for_backward
(
input
,
offset
,
weight
)
output
=
input
.
new_empty
(
...
...
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