Skip to content

Commit

Permalink
[BugFix] state typo in RNG control module (#1878)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Feb 6, 2024
1 parent 203515a commit 898f6ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def _get_state(self):
)

else:
self.state = torch.random.get_rng_state()
self._state = torch.random.get_rng_state()

def __exit__(self, exc_type, exc_val, exc_tb):
if self.has_cuda:
Expand Down

0 comments on commit 898f6ec

Please sign in to comment.