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

Fix load_snapshot. Always request env to load snapshot #28

Merged
merged 1 commit into from
Sep 29, 2021

Conversation

ishihara-y
Copy link
Contributor

Fix for gym.spaces.Space interface change.
gym.spaces.Space fails to generate instance when loading pickled Spaces from older (<0.20.0) gym versions.

Because we can not control the changes of gym's interface, we decided to require gym.Env or EnvorinmentInfo instance on loading snapshot.

See this PR of gym for details

@ishihara-y ishihara-y self-assigned this Sep 29, 2021
Copy link
Contributor

@sbsekiguchi sbsekiguchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@sbsekiguchi sbsekiguchi merged commit 33dd861 into master Sep 29, 2021
@ishihara-y ishihara-y deleted the feature/20210928-fix-load-snapshot branch September 29, 2021 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants