Unverified Commit 811e0908 authored by Robin Zhang's avatar Robin Zhang Committed by GitHub
Browse files

[PyTorch] Update RNG global states in tracker set_states (#2501)



set_all_rng_states in set_states
Signed-off-by: default avatarRobin Zhang <robinz@nvidia.com>
Co-authored-by: default avatarKirthi Shankar Sivamani <ksivamani@nvidia.com>
parent a5694f26
......@@ -818,6 +818,8 @@ class CudaRNGStatesTracker:
A mapping from string names to RNG states.
"""
self.states_ = states
# Update global states.
set_all_rng_states(self.states_)
def add(self, name: str, seed: int) -> None:
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment