Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Dec 12, 2024
1 parent a874ea2 commit b827784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def check_env_specs(self, *args, **kwargs):

check_env_specs.__doc__ = check_env_specs_func.__doc__

def cardinality(self, tensordict: TensorDictBase|None=None) -> int:
def cardinality(self, tensordict: TensorDictBase | None = None) -> int:
"""The cardinality of the action space.
By default, this is just a wrapper around :meth:`env.action_space.cardinality <~torchrl.data.TensorSpec.cardinality>`.
Expand Down

0 comments on commit b827784

Please sign in to comment.