pytorch / 2 / generated / torch.mps.set_rng_state.html

torch.mps.set_rng_state

torch.mps.set_rng_state(new_state) [source]

Sets the random number generator state.

Parameters

new_state (torch.ByteTensor) – The desired state

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