torch.xpu.get_rng_state¶
- torch.xpu.get_rng_state(device='xpu')[source][source]¶
Return the random number generator state of the specified GPU as a ByteTensor.
- Parameters
device (torch.device or int, optional) – The device to return the RNG state of. Default:
'xpu'
(i.e.,torch.device('xpu')
, the current XPU device).- Return type
Warning
This function eagerly initializes XPU.