We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug In 2.2.1 version, "allow_objects=True" flag for DictConfg behavior changed.
DictConfg
To Reproduce
from omegaconf import OmegaConf, DictConfig from collections import namedtuple Shape=namedtuple("Shape", field_names=["channels", "height", "width"]) a = Shape(10, 2, 3) cfg = DictConfig(dict(shape=a), flags={"allow_objects": True})
In 2.1.1: cfg is {'shape': Shape(channels=10, height=2, width=3)}.
{'shape': Shape(channels=10, height=2, width=3)}
In 2.2.1: cfg is [10, 2, 3].
[10, 2, 3]
The text was updated successfully, but these errors were encountered:
Thanks for the bug report, @xvjiarui.
Sorry, something went wrong.
Thank you! @Jasha10
git bisect identifies commit 4b19378 as the issue
is_primitive_list
Successfully merging a pull request may close this issue.
Describe the bug
In 2.2.1 version, "allow_objects=True" flag for
DictConfg
behavior changed.To Reproduce
In 2.1.1:
cfg is
{'shape': Shape(channels=10, height=2, width=3)}
.In 2.2.1:
cfg is
[10, 2, 3]
.The text was updated successfully, but these errors were encountered: