TensorPlay
API symbolscuda
Copy
View MarkdownDownload .md

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.

Ask DeepWiki