Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
SameDiff: Serialization (/loading flatbuffers in Java) #5759
Use case: I want to save/serialize a SameDiff instance graph/op structure - without the arrays - and in a format that won't break on every version upgrade.
(Why: this would allow what I would call "true" lambda layers in DL4J: a neat but non-critical feature... defining no-params layers as a lambda class should be possible now (pending a PR merge) but the JSON serialization clearly won't work here. However, if I can write a custom JSON serializer that handles the SameDiff instance serialization, even in a binary format - that would be fine).
Currently, the only serialization format we support is FlatBuffers - via SameDiff.asFlatBuffers.