Skip to content

Commit

Permalink
[Fix] Fix DCN fp16
Browse files Browse the repository at this point in the history
  • Loading branch information
shinya7y committed May 8, 2021
1 parent db6b054 commit 8ee2f20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mmcv/ops/deform_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def forward(ctx,
ctx.deform_groups = deform_groups
ctx.im2col_step = im2col_step

weight = weight.type_as(input)
ctx.save_for_backward(input, offset, weight)

output = input.new_empty(
Expand Down

0 comments on commit 8ee2f20

Please # to comment.