Skip to content

Commit

Permalink
better docs
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbou92 committed Nov 1, 2024
1 parent 69bd3a3 commit 82c12e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions torchrl/envs/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4594,9 +4594,9 @@ class TensorDictPrimer(Transform):
When used in a `TransformedEnv`, the spec shapes must match the environment's shape if
the parent environment is batch-locked (`env.batch_locked=True`). If the spec shapes and
parent shapes do not match, the spec shapes are modified in place to match the leading
dimensions of the parent's batch size. This adjustment is made for cases where the primer
shape is known during instantiation, but the batch size is not known until reset.
parent shapes do not match, the spec shapes are modified in-place to match the leading
dimensions of the parent's batch size. This adjustment is made for cases where the parent
batch size dimension is not known during instantiation.
Examples:
>>> from torchrl.envs.libs.gym import GymEnv
Expand Down

0 comments on commit 82c12e4

Please sign in to comment.