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

Switch observations from FrozenDicts to plain Dicts #567

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

Andrew-Luo1
Copy link
Contributor

PR 560 assumed that enviroments would always return observations as flax.core.FrozenDict's but this has already proven confusing/cumbersome, and it turns out that the Flax repository came to the same conclusion.

This PR changes dictionary observation handling to assume them to be plain Python dictionaries.

@btaba btaba self-assigned this Dec 6, 2024
Copy link
Collaborator

@btaba btaba left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup @Andrew-Luo1 , looks good!

@btaba btaba merged commit 49f03c0 into google:main Dec 6, 2024
3 checks passed
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