torch.accelerator.random.get_rng_state
- torch.accelerator.random.get_rng_state(device=None, /)
Return the RNG state of the default
torch.Generatorfor the current accelerator as a torch.Tensor of dtype torch.uint8 for the specified accelerator device.