torch.cuda.set_rng_state_all
-
torch.cuda.set_rng_state_all(new_states)[исходный код] -
Устанавливает состояние генератора случайных чисел для всех устройств.
- Параметры:
-
new_states (Iterable of torch.ByteTensor) – Желаемое состояние для каждого устройства.
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.cuda.set_rng_state_all.html