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
ConfigDict() does not allow dictionary with int data type as key
To Reproduce
from ml_collections import ConfigDict tmp = ConfigDict() tmp.demo0 = 10 # no bug tmp.demo1 = '10' # no bug tmp.demo2 = {'0': '10', '1': '20'} # no bug tmp.demo3 = {0: '10', 1: '20'} # bug
ConfigDict
ConfigFlags
im not sure how to provide config flags, therefore i created a brand new conda virtual env to demonstrate the bug.
~$ conda create --name bug python=3.8 ~$ conda activate bug ~$ pip install ml-collections ~$ python from ml_collections import ConfigDict tmp = ConfigDict() tmp.demo = {0: '10', 1: '20'}
Expected behavior
the should run, and save the dictionary without issue
Environment:
Additional context
when I changed the key to str type, the code runs. However I want to be able to use str type.
The text was updated successfully, but these errors were encountered:
attrdict
ml_collections
mohitreddy1996
No branches or pull requests
Describe the bug
ConfigDict() does not allow dictionary with int data type as key
To Reproduce
ConfigDict
ConfigFlags
im not sure how to provide config flags, therefore i created a brand new conda virtual env to demonstrate the bug.
Expected behavior
the should run, and save the dictionary without issue
Environment:
Additional context
when I changed the key to str type, the code runs. However I want to be able to use str type.
The text was updated successfully, but these errors were encountered: