Convert current points to cuda device. Returns: :obj:`BasePoints`: A new points object on the cuda device.
(self, *args, **kwargs)
| 453 | attribute_dims=self.attribute_dims) |
| 454 | |
| 455 | def cuda(self, *args, **kwargs) -> 'BasePoints': |
| 456 | """Convert current points to cuda device. |
| 457 | |
| 458 | Returns: |
| 459 | :obj:`BasePoints`: A new points object on the cuda device. |
| 460 | """ |
| 461 | original_type = type(self) |
| 462 | return original_type(self.tensor.cuda(*args, **kwargs), |
| 463 | points_dim=self.points_dim, |
| 464 | attribute_dims=self.attribute_dims) |
| 465 | |
| 466 | def clone(self) -> 'BasePoints': |
| 467 | """Clone the points. |