Skip to content

Commit

Permalink
[BugFix] Remove split_trajectories's reference to `("next", "done")…
Browse files Browse the repository at this point in the history
…`. (#2094)
  • Loading branch information
initmaks authored Apr 22, 2024
1 parent 68ef60b commit 32533a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/collectors/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def split_trajectories(
torch.ones(
out_split.shape,
dtype=torch.bool,
device=out_split.get(("next", "done")).device,
device=out_split.device,
),
)
if len(out_splits) > 1:
Expand Down

0 comments on commit 32533a5

Please sign in to comment.