Rate this Page
โ˜… โ˜… โ˜… โ˜… โ˜…

device#

class torch.xpu.device(device)[source]#

Context-manager that changes the selected device.

Parameters

device (torch.device or int or str) โ€“ device index to select. Itโ€™s a no-op if this argument is a negative integer or None.