google / ml_collections

ML Collections is a library of Python Collections designed for ML use cases.
https://ml-collections.readthedocs.io/
Apache License 2.0
898 stars 42 forks source link

add save_as_json_best_effort method to ConfigDict #15

Open smonsays opened 2 years ago

smonsays commented 2 years ago

In my use cases it is useful to save realised ConfigDicts to disk but AFAIK there is currently no built-in functionality for this. Given the existing JSON serialisation logic it would be a simple addition. Do you think this is a worthwhile addition?