Convert current points to a specific device. Args: device (str | :obj:`torch.device`): The name of the device. Returns: :obj:`BasePoints`: A new boxes object on the specific device.
(self, device)
| 378 | return cat_points |
| 379 | |
| 380 | def to(self, device): |
| 381 | """Convert current points to a specific device. |
| 382 | |
| 383 | Args: |
| 384 | device (str | :obj:`torch.device`): The name of the device. |
| 385 | |
| 386 | Returns: |
| 387 | :obj:`BasePoints`: A new boxes object on the |
| 388 | specific device. |
| 389 | """ |
| 390 | original_type = type(self) |
| 391 | return original_type( |
| 392 | self.tensor.to(device), |
| 393 | points_dim=self.points_dim, |
| 394 | attribute_dims=self.attribute_dims) |
| 395 | |
| 396 | def clone(self): |
| 397 | """Clone the Points. |
no outgoing calls