Spec-Zone.ru › PyTorch 1

torch.cuda.get_rng_state

torch.cuda.get_rng_state(device='cuda') [source]

Returns the random number generator state of the specified GPU as a ByteTensor.

Parameters:

device (torch.device or int, optional) – The device to return the RNG state of. Default: 'cuda' (i.e., torch.device('cuda'), the current CUDA device).

Return type:

Tensor

Warning

This function eagerly initializes CUDA.

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.cuda.get_rng_state.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API