Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Dec 19, 2024
1 parent 234e2e8 commit 572a570
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions torchrl/data/replay_buffers/samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,9 +1095,8 @@ def __repr__(self):
f"strict_length={self.strict_length})"
)

@classmethod
def _find_start_stop_traj(
cls, *, trajectory=None, end=None, at_capacity: bool, cursor=None
self, *, trajectory=None, end=None, at_capacity: bool, cursor=None
):
if trajectory is not None:
# slower
Expand Down Expand Up @@ -1150,7 +1149,7 @@ def _find_start_stop_traj(
raise RuntimeError(
"Expected the end-of-trajectory signal to be at least 1-dimensional."
)
return cls._end_to_start_stop(length=length, end=end)
return self._end_to_start_stop(length=length, end=end)

def _end_to_start_stop(self, end, length):
device = None
Expand Down

0 comments on commit 572a570

Please sign in to comment.