bytedeco/javacpp

Failed to set NetParameter from byte[]

Open

#98 opened on May 18, 2016

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Java (620 forks)batch import
help wantedquestion

Repository metrics

Stars
 (4,279 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Hi everyone,

Creating a byte[] from a NetParameter can be done as follows :

byte[] byteModel = new byte[netParameter.ByteSize()];
netParameter.SerializeWithCachedSizesToArray(byteModel);

How can I do the other way? Copy weights from byte[] to NetParameter? I have tried all the functions with no success...

Thank you very much in advance,

Contributor guide