TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.cuda.random.get_rng_state

tensorplay.cuda.random.get_rng_state(device: int | str | Any = 'cuda') → Tensor[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.

On this page

Ask DeepWiki