Skip to content

Commit

Permalink
Fix inplace error using clone (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiuqhou committed Jul 23, 2024
1 parent 399023a commit 3a310d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/bricks/relation_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,4 +527,4 @@ def forward(self, src_boxes: Tensor, tgt_boxes: Tensor = None):
pos_embed = self.pos_func(pos_embed).permute(0, 3, 1, 2)
pos_embed = self.pos_proj(pos_embed)

return pos_embed
return pos_embed.clone()

0 comments on commit 3a310d8

Please sign in to comment.