torch.mps.get_rng_state — PyTorch 2.7 documentation (original) (raw)
torch.mps.get_rng_state(device='mps')[source][source]¶
Returns the random number generator state as a ByteTensor.
Parameters
device (torch.device or int, optional) – The device to return the RNG state of. Default: 'mps'
(i.e., torch.device('mps')
, the current MPS device).
Return type
To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.