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