Add some kind de/serialisation?
See original GitHub issueEquinox models are just PyTrees so they should be very easy to serialise/deserialise; just save the PyTree to disk in whatever way is desired. It might be worth adding some library functions for this just for convenience. Perhaps checking the device of JAX arrays etc?
This should respect the get_state
/set_state
stuff that’s being put together.
In addition, there should be a version of get_state
which inlines its state in the call graph, for faster inference.
Issue Analytics
- State:
- Created a year ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
How to serialize and deserialize JSON using C# - .NET
A common way to deserialize JSON is to first create a class with properties and fields that represent one or more of the...
Read more >json.net - add custom code when specific type is deserialized
My first approach was to use a custom jsonconverter and run some code in readjson. Thing is, the custom classes can be complex...
Read more >How to Deserialize a Complex JSON Object in C# .NET
In this article, we are gonig to learn how to deserialize a complex JSON object using C# as our language of choice.
Read more >C# - Deserialize JSON to List of Employee Objects - YouTube
In this episode, I show you how to deserialize JSON string into a list of Employee objects and display them on the console...
Read more >System.Text.Json can't deserialize type with more than 64 ctor ...
Description Overview Deserialize(String, JsonSerializerOptions) can not deserialize a type with more than 64 ctor-parameters.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @patrick-kidger, sorry for the little progress here. I’ve been side-tracked with other topics so I haven’t come around to working on this beyond our initial discussion. I’m afraid I cannot promise any serious progress on this in the upcoming weeks from my side, so please move ahead if you’re eager to work on this.
@jaschau Any plans to pick this up as a PR? No worries if not – I’ll do it – I just want to get seralisation+deserialisation into the next release of Equinox.