-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add support for hierarchical dict #1144
Comments
Given that incompatibility with params = flatten_dict(params) # convert {'a': {'b': 'c'}} -> {'a/b': 'c'} The flattened dict would use params = flatten_dict(params) # convert {'a': {'b': 'c'}} -> {'a.b': 'c'} Now, is there an use-case for de-serializing these flattened dicts back into hierarchical ones? |
Thank you for replying, @Borda. I'll send PR after some discussions here. |
@luiscape Thank you for the suggestions.
Do you have any reasons to use
I don't have any idea because the flattening only has the meaning of parsing for logging. |
Could you pls comment on these PRs thow...
Could you open an issue and raise/start such discussion (or jsut continue in the Hydra one?) |
I commented in #1128.
Yeah, I'm going to open issues. |
@S-aiueo32 I suggested using If there's further functionality added by using |
Could we implement this in such as way to enable the use of versus |
@luiscape |
@jeremyjordan |
🚀 Feature
Motivation
Since v0.7.0, LightningModule accepts dict hparams, however, still TensorBoardLogger raises an error with hierarchical dict. Considering the compatibility of the other package, especially Hydra #807, hierarchical dict should be accepted by any loggers.
Pitch
Alternatives
The function
_convert_params
in loggers/base.py will be changed like:The text was updated successfully, but these errors were encountered: