Convert current points to cpu device. Returns: :obj:`BasePoints`: A new points object on the cpu device.
(self)
| 442 | attribute_dims=self.attribute_dims) |
| 443 | |
| 444 | def cpu(self) -> 'BasePoints': |
| 445 | """Convert current points to cpu device. |
| 446 | |
| 447 | Returns: |
| 448 | :obj:`BasePoints`: A new points object on the cpu device. |
| 449 | """ |
| 450 | original_type = type(self) |
| 451 | return original_type(self.tensor.cpu(), |
| 452 | points_dim=self.points_dim, |
| 453 | attribute_dims=self.attribute_dims) |
| 454 | |
| 455 | def cuda(self, *args, **kwargs) -> 'BasePoints': |
| 456 | """Convert current points to cuda device. |
no outgoing calls
no test coverage detected