Skip to content

Commit 21ef725

Browse files
authored
[Quality] Remove redundant return (#2925)
1 parent e4733b8 commit 21ef725

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

torchrl/data/replay_buffers/samplers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,6 @@ def sample(self, storage: Storage, batch_size: int) -> torch.Tensor:
526526
index = unravel_index(index, storage.shape)
527527
return index, {"_weight": weight}
528528

529-
return index, {"_weight": weight}
530-
531529
def add(self, index: torch.Tensor | int) -> None:
532530
super().add(index)
533531
self._maybe_erase_max_priority(index)

0 commit comments

Comments
 (0)