Skip to content

Commit

Permalink
[BugFix] Fix update_priority generic signature for Samplers (pytorch#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Jun 27, 2024
1 parent 670a8cf commit 353c897
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion torchrl/data/replay_buffers/samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ def extend(self, index: torch.Tensor) -> None:
return

def update_priority(
self, index: Union[int, torch.Tensor], priority: Union[float, torch.Tensor]
self,
index: Union[int, torch.Tensor],
priority: Union[float, torch.Tensor],
*,
storage: Storage | None = None,
) -> dict | None:
return

Expand Down

0 comments on commit 353c897

Please sign in to comment.