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

[Doc] Minor fixes to comments and docstrings #2443

Merged
merged 3 commits into from
Sep 30, 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
Fix link and whitespace
  • Loading branch information
thomasbbrunner committed Sep 19, 2024
commit 46220ee8c5132da159d30bdb34c9ce91bed8ff10
12 changes: 6 additions & 6 deletions torchrl/envs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@


ACTION_MASK_ERROR = RuntimeError(
"An out-of-bounds actions has been provided to an env with an 'action_mask' output."
" If you are using a custom policy, make sure to take the action mask into account when computing the output."
" If you are using a default policy, please add the torchrl.envs.transforms.ActionMask transform to your environment."
"An out-of-bounds actions has been provided to an env with an 'action_mask' output. "
"If you are using a custom policy, make sure to take the action mask into account when computing the output. "
"If you are using a default policy, please add the torchrl.envs.transforms.ActionMask transform to your environment. "
"If you are using a ParallelEnv or another batched inventor, "
"make sure to add the transform to the ParallelEnv (and not to the sub-environments)."
" For more info on using action masks, see the docs at: "
"https://pytorch.org/rl/reference/envs.html#environments-with-masked-actions"
"make sure to add the transform to the ParallelEnv (and not to the sub-environments). "
"For more info on using action masks, see the docs at: "
"https://pytorch.org/rl/main/reference/envs.html#environments-with-masked-actions"
)


Expand Down