Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Nov 21, 2023
1 parent a4d70cb commit 86e33ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensordict/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def chunk(self, chunks: int, dim: int = 0) -> tuple[TensorDictBase, ...]:
f"chunks must be a strictly positive integer, got {chunks}."
)
# fall back on split, using upper rounding
split_size = - (self.batch_size[dim] // -chunks)
split_size = -(self.batch_size[dim] // -chunks)
return self.split(split_size, dim=dim)

@overload
Expand Down

0 comments on commit 86e33ac

Please sign in to comment.