Skip to content

Commit

Permalink
Fix DyDCNv2 RuntimeError (open-mmlab#8485)
Browse files Browse the repository at this point in the history
the parameter of offset is not set as continuous will trigger the runtime error: offset must be continuous
  • Loading branch information
BubblyYi authored and SakiRinn committed Mar 17, 2023
1 parent 7fc9320 commit 45d9f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmdet/models/necks/dyhead.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self,

def forward(self, x, offset, mask):
"""Forward function."""
x = self.conv(x.contiguous(), offset, mask)
x = self.conv(x.contiguous(), offset.contiguous(), mask)
if self.with_norm:
x = self.norm(x)
return x
Expand Down

0 comments on commit 45d9f55

Please sign in to comment.