4 ms·
the soopar geniuses at facebook clearly know better! /s (in truth, because pytorch serialised models can include python code for jit scripts, it's nonobvious w
by hprotagonist 6y ago
the soopar geniuses at facebook clearly know better! /s
(in truth, because pytorch serialised models can include python code for jit scripts, it's nonobvious what a good way to store python code is -- but torch has recently moved to a zipfile impl as of 1.6: https://pytorch.org/docs/stable/generated/torch.save.html https://pytorch.org/docs/stable/generated/torch.save.html)
>I'd have expected people to be using something like hdf5 for this.
Amusingly, matlab was way ahead of the pack here; matfiles have been hdf5 since r2006b, back when we just called it "matlab 7.3".
- a-dub 6y agoyep! in past projects i've actually used the .mat file format for both C and python bits because their wrapping of hdf5 is sufficiently well done. solved a lot of problems! :)