-
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
Fix reverted RockPaperScissors Pettingzoo example #16896
Conversation
Signed-off-by: Richard Liaw <[email protected]>
Signed-off-by: Richard Liaw <[email protected]>
Signed-off-by: Richard Liaw <[email protected]>
Signed-off-by: Richard Liaw <[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.
Thanks for the PR @richardliaw ! Looks good, I just removed the env-spaces block. We don't need dummy envs in RLlib anymore :).
env_for_spaces = PettingZooEnv(env_creator({})) | ||
obs_space = env_for_spaces.observation_space | ||
act_space = env_for_spaces.action_space |
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.
Actually, we don't need this anymore. RLlib now automatically infers missing spaces from the workers' env(s)/policies.
Why are these changes needed?
Reverted in ecb6321.
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.