rstudio / bundle

Prepare objects for serialization with a consistent interface
https://rstudio.github.io/bundle/
Other
28 stars 4 forks source link

Fix bundle method for keras #37

Closed juliasilge closed 2 years ago

juliasilge commented 2 years ago

I think this needs to be updated to add a readBin(what = 'raw') in the sequence, or tar(), or some combination of the two. Right now it looks like bundle() is just saving a string that's a path to a tempfile().

save_model_tf() creates a directory at file_loc, and a path to a directory with the same contents needs to be passed to load_model_tf().

(Thanks @dfalbel!)

Originally posted by @t-kalinowski in https://github.com/rstudio/bundle/issues/27#issuecomment-1218014621