Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 13, 2024
2 parents ebd9599 + 28fd05e commit 319ec57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions detectron2/structures/rotated_boxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ def clone(self) -> "RotatedBoxes":
"""
return RotatedBoxes(self.tensor.clone())

def to(self, device: torch.device):
def to(self, device: torch.device, non_blocking: bool = False):
# Boxes are assumed float32 and does not support to(dtype)
return RotatedBoxes(self.tensor.to(device=device))
return RotatedBoxes(self.tensor.to(device=device, non_blocking=non_blocking))

def area(self) -> torch.Tensor:
"""
Expand Down

0 comments on commit 319ec57

Please sign in to comment.