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
1 parent 2140527 commit 5dfc92a
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 @@ -936,6 +936,9 @@ def wrapper(
batch_size = torch.Size(())
else:
batch_size = kwargs.pop("batch_size", torch.Size(()))
if batch_size is None:
batch_size = torch.Size(())

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

0 comments on commit 5dfc92a

Please sign in to comment.