(self, tensor, align_bytes=1)
| 232 | return functools.partial(torch.tensor, dtype=torch.long, device='hpu') |
| 233 | |
| 234 | def pin_memory(self, tensor, align_bytes=1): |
| 235 | return tensor.pin_memory(self.device()) |
| 236 | |
| 237 | def is_pinned(self, tensor): |
| 238 | return tensor.is_pinned() |