Skip to content

Add json_serializable arg in serializer#7

Open
thomasloux wants to merge 2 commits intomainfrom
feat/serialize-json
Open

Add json_serializable arg in serializer#7
thomasloux wants to merge 2 commits intomainfrom
feat/serialize-json

Conversation

@thomasloux
Copy link
Copy Markdown

When running config_to_dict, force the output to be json serializable:
in leaf, only int, float, bool, str and None is authorized.
This PR mainly convert np and torch into list.

@thomasloux thomasloux requested a review from acecchini February 3, 2026 16:12
@thomasloux
Copy link
Copy Markdown
Author

I need this feature or something similar. Open to discuss about it, if you prefer another implementation @acecchini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant