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

[Refactor] specs batch size refactoring #829

Merged
merged 34 commits into from
Jan 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 10 additions & 0 deletions knowledge_base/PRO-TIPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,13 @@ Errors to look for that may be related to this misconception are the following:
are being used, using vectorized maps and functional programming (through
functorch) instead of looping over the model configurations can provide a
significant speedup.

## Common bugs
- For bugs related to mujoco (incl. DeepMind Control suite and other libraries),
refer to the [MUJOCO_INSTALLATION](MUJOCO_INSTALLATION.md) file.
- `ValueError: bad value(s) in fds_to_keep`: this can have multiple reasons. One that is common in torchrl
is that you are trying to send a tensor across processes that is a view of another tensor.
For instance, when sending the tensor `b = tensor.expand(new_shape)` across processes, the reference to the original
content will be lost (as the `expand` operation keeps the reference to the original tensor).
To debug this, look for such operations (`view`, `permute`, `expand`, etc.) and call `clone()` or `contiguous()` after
the call to the function.
Loading