Convert from OrderedDict? #1155
Unanswered
jprawiharjo
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Indeed, def to_regular_dict(container):
if isinstance(container, dict):
return {k: to_regular_dict(v) for k, v in container.items()}
elif isinstance(container, list):
return [to_regular_dict(k) for k in container]
else:
return container |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a nested dict that contains
OrderedDict. How do I convert this to omegaconf? Bothsaveandcreatecomplain:omegaconf.errors.UnsupportedValueType: Value 'OrderedDict' is not a supported primitive typeBeta Was this translation helpful? Give feedback.
All reactions