device#
- class torch.mtia.device(device)[source]#
更改选定设备的上下文管理器。
- 参数
device (torch.device or int) – device index to select. It’s a no-op if this argument is a negative integer or
None
.
更改选定设备的上下文管理器。
device (torch.device or int) – device index to select. It’s a no-op if this argument is a negative integer or None
.