Detach all tensors in data.
(self)
| 248 | return self._convert(apply_to=torch.Tensor, func=lambda x: x.cuda()) |
| 249 | |
| 250 | def detach(self) -> 'MultilevelPixelData': |
| 251 | """Detach all tensors in data.""" |
| 252 | return self._convert(apply_to=torch.Tensor, func=lambda x: x.detach()) |
| 253 | |
| 254 | def numpy(self) -> 'MultilevelPixelData': |
| 255 | """Convert all tensor to np.narray in data.""" |
no test coverage detected