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