(self, memory_format: torch.memory_format = torch.preserve_format)
| 382 | return LazyTensor(factory_fn, self, meta_data=meta_data, device=device) |
| 383 | |
| 384 | def cpu(self, memory_format: torch.memory_format = torch.preserve_format): |
| 385 | return self.to(device=torch.device("cpu"), memory_format=memory_format) |
| 386 | |
| 387 | def cuda(self, device=None, non_blocking=False, memory_format: torch.memory_format = torch.preserve_format): |
| 388 | device = torch.device(device or "cuda") |