Bind the current process to a device.
(self, device: Optional[Union[torch.device, int]] = None)
| 43 | raise RuntimeError("this method is not supported for cpu accelerator") |
| 44 | |
| 45 | def set_device(self, device: Optional[Union[torch.device, int]] = None) -> None: |
| 46 | """ |
| 47 | Bind the current process to a device. |
| 48 | """ |
| 49 | raise RuntimeError("this method is not supported for cpu accelerator") |
| 50 | |
| 51 | def get_device_name(self, device: Union[torch.device, int]) -> str: |
| 52 | """ |
no outgoing calls