Skip to content

Commit

Permalink
[Feature] EnvBase.check_env_specs
Browse files Browse the repository at this point in the history
ghstack-source-id: 332dbf92db496c71c5ce6aba340ad123eac0f5d6
Pull Request resolved: #2600
  • Loading branch information
vmoens committed Nov 24, 2024
1 parent de153bf commit 00d3199
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions torchrl/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ def __init__(
self.batch_size = torch.Size(batch_size)
self._run_type_checks = run_type_checks
self._allow_done_after_reset = allow_done_after_reset
@wraps(check_env_specs_func)
def check_env_specs(self, *args, **kwargs):
return check_env_specs_func(self, *args, **kwargs)

check_env_specs.__doc__ = check_env_specs_func.__doc__

@classmethod
def __new__(cls, *args, _inplace_update=False, _batch_locked=True, **kwargs):
Expand Down

0 comments on commit 00d3199

Please sign in to comment.