Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BugFix] Fix Ray collector example error #1908

Merged
merged 6 commits into from
Feb 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor fix
  • Loading branch information
albertbou92 committed Feb 15, 2024
commit 498f0f2cf46b27368d96bade543830aa47909295
2 changes: 1 addition & 1 deletion torchrl/collectors/distributed/ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ def _async_iterator(self) -> Iterator[TensorDictBase]:

# Wait for the in-process collections tasks to finish.
refs = list(pending_tasks.keys())
ray.wait(num_returns=len(refs))
ray.wait(refs, num_returns=len(refs))

# Cancel the in-process collections tasks
# for ref in refs:
Expand Down