torch.cuda.get_rng_state
- torch.cuda.get_rng_state(device='cuda')
Return the random number generator state of the specified GPU as a ByteTensor.
- Parameters:
device (torch.device or ) – The device to return the RNG state of. Default: (i.e., , the current CUDA device).