torch.mtia.set_device¶
- torch.mtia.set_device(device)[source]¶
Set the current device.
- Parameters
device (torch.device or int) – selected device. This function is a no-op if this argument is negative.
Set the current device.
device (torch.device or int) – selected device. This function is a no-op if this argument is negative.