Write custom serialisation for experience replay
See original GitHub issueAlthough it is now possible to save/load experience replay memories (https://github.com/Kaixhin/PlaNet/issues/3), naively using torch.save
fails with large memories. Dealing with this would require custom serialisation code.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Getting Started with Custom Deserialization in Jackson
This quick tutorial will illustrate how to use Jackson 2 to deserialize JSON using a custom Deserializer.
Read more >Understanding TypeScript object serialization - LogRocket Blog
Learn about object serialization in TypeScript, the way systems communicate seamlessly, and the issues with serialization in TypeScript.
Read more >Serialization — Ray 2.2.0 - the Ray documentation
Numpy arrays in the object store are shared between workers on the same node (zero-copy deserialization). Overview#. Ray has decided to use a...
Read more >Create and Deserialize a JSON Array
The example below explains how to use activities such as Invoke Code and Deserialize Json Array to create a JSON array, deserialize it,...
Read more >DataConverters - AWS Flow Framework for Java
The framework will create objects of the DataConverter type you specified on @Activities annotation to serialize the inputs to the activity and to...
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 Free
Top Related Reddit Thread
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
I was just talking about https://github.com/Kaixhin/PlaNet/blob/master/memory.py#L15-L18 , but yes, anything that needs to be stored to recover the whole
ExperienceReplay
class.Oh nice, this absolutely seems viable.
(10**6, 3, 64, 64)
is 12 GB on the hard-drive but reading and writing are mostly instant. As a minimal working example:I’ll get round to integrating it with your buffer at some point - if you think it’d be worthwhile.