-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[RLlib] Fix two RL docs examples #34353
[RLlib] Fix two RL docs examples #34353
Conversation
Signed-off-by: Artur Niederfahrenhorst <[email protected]>
my_head = catalog.build_my_head("torch") # doctest: +SKIP | ||
out = my_head(...) # doctest: +SKIP | ||
my_head = catalog.build_my_head("torch") | ||
out = my_head(torch.Tensor([[1]])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I wrote them, I assumed that these # doctest: +SKIP
would work on them. It does not.
Signed-off-by: Artur Niederfahrenhorst <[email protected]>
) | ||
policy_dict, is_policy_to_train = config.get_multi_agent_setup( | ||
env=gym.make("CartPole-v1")) | ||
is_policy_to_train("pol1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want to delete the output of these commands? otherwise lgtm
Thanks for making the docs build green again ❤️ #fasterandgreener |
Signed-off-by: Artur Niederfahrenhorst <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finally. thanks a ton.
Signed-off-by: Artur Niederfahrenhorst <[email protected]>
Signed-off-by: Artur Niederfahrenhorst <[email protected]>
Signed-off-by: Artur Niederfahrenhorst <[email protected]> Signed-off-by: elliottower <[email protected]>
Signed-off-by: Artur Niederfahrenhorst <[email protected]> Signed-off-by: Jack He <[email protected]>
Why are these changes needed?
We currently have two RLlib doc tests failing.
This PR fixes both.