Skip to content

Commit

Permalink
[BugFix] Avoid calling reset during env init
Browse files Browse the repository at this point in the history
ghstack-source-id: 080435dd10466498f083df6d2b74e9ef4b6d8640
Pull Request resolved: #2770
  • Loading branch information
vmoens committed Feb 7, 2025
1 parent fd7353b commit 8f747da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/envs/libs/gym.py
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ def _output_transform(self, step_outputs_tuple): # noqa: F811
)

def _init_env(self):
self.reset()
pass

def __repr__(self) -> str:
return (
Expand Down

0 comments on commit 8f747da

Please sign in to comment.