Skip to content

Commit

Permalink
[BugFix] state typo in RNG control module
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Feb 6, 2024
1 parent eec9f9e commit d8d1cac
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 d8d1cac

Please sign in to comment.