API symbolscuda
Copy
tensorplay.cuda.random.get_rng_state
- tensorplay.cuda.random.get_rng_state(device: int | str | Any = 'cuda') TensorBase[source]
Return the random number generator state of the specified GPU as a ByteTensor.
- Parameters:
device (tensorplay.Device or int, optional) – The device to return the RNG state of. Default:
'cuda'(i.e., the current CUDA device).
Warning
This function eagerly initializes CUDA.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?
