question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add some kind de/serialisation?

See original GitHub issue

Equinox 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:closed
  • Created a year ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jaschaucommented, May 4, 2022

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.

0reactions
patrick-kidgercommented, May 4, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found