pytorch / 1 / generated / torch.cuda.set_rng_state_all.html

torch.cuda.set_rng_state_all

torch.cuda.set_rng_state_all(new_states) [source]

Sets the random number generator state of all devices.

Parameters:

new_states (Iterable of torch.ByteTensor) – The desired state for each device

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