Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Jan 7, 2025
2 parents bce850d + e07daee commit fef37d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tensordict/tensorclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,9 @@ def wrapper(
batch_size = kwargs.pop("batch_size", torch.Size(()))
if isinstance(batch_size, int):
batch_size = (batch_size,)
elif batch_size is None:
batch_size = torch.Size(())

if "names" in required_params:
names = None
else:
Expand Down

0 comments on commit fef37d6

Please sign in to comment.