Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Jun 7, 2024
1 parent 13ec40b commit 39a44fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/data/replay_buffers/samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,7 @@ def _padded_indices(self, shapes, arange) -> torch.Tensor:
return pad

@implement_for("torch", None, "2.4")
def _padded_indices(self, shapes, arange) -> torch.Tensor: # F811
def _padded_indices(self, shapes, arange) -> torch.Tensor: # noqa: F811
arange = arange.flip(0).split(shapes.flip(0).squeeze().unbind())
return (
torch.nn.utils.rnn.pad_sequence(arange, batch_first=True, padding_value=-1)
Expand Down

0 comments on commit 39a44fb

Please sign in to comment.