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

Attempt to fix loading of simple OmegaConf pickled configs stored in 2.0 #718

Merged
merged 3 commits into from
May 19, 2021

Conversation

omry
Copy link
Owner

@omry omry commented May 18, 2021

OmegaConf 2.1 changed how it stored key_type and element_type when pickling.
As a result, pickled configs stored in 2.0 are missing those fields and they and up as None, resulting in errors while using the config.
This adds logic to fall-back to Any in such cases.

Closes #717.

@omry omry requested review from odelalleau and Jasha10 May 18, 2021 23:00
Copy link
Collaborator

@odelalleau odelalleau left a comment

Choose a reason for hiding this comment

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

Just a few comments

tests/test_serialization.py Show resolved Hide resolved
tests/test_serialization.py Outdated Show resolved Hide resolved
omegaconf/basecontainer.py Show resolved Hide resolved
MANIFEST.in Show resolved Hide resolved
Co-authored-by: Olivier Delalleau <507137+odelalleau@users.noreply.github.com>
@omry omry merged commit 7153233 into master May 19, 2021
@omry omry deleted the pickle-bc branch May 19, 2021 01:50
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.

Pickled OmegaConf 2.0 configs does not load in OmegaConf 2.1.0.rc1
3 participants