rstudio / bundle

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

Update how to bundle keras #27

Closed juliasilge closed 2 years ago

juliasilge commented 2 years ago

Based on feedback from @t-kalinowski, we have:

t-kalinowski 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!)