-
Notifications
You must be signed in to change notification settings - Fork 428
Saving a SavedModel after loading a graph #279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm also interested in this, but have yet to found any possible workaround. It seems like while the signatures can be obtained from EDIT 2020/12/20: What I wanted to do is to build the model in Python, and then train the model from Rust, so I'm looking for a way to keep all the trained parameters, either using SavedModel or checkpoints. Things I've tried so far:
Another interesting finding is that in the experimental C API ( |
I found a (quite hacky and ugly) workaround to this.
This makes it possible to save the state of a network trained from the Rust side, but I still haven't found any way to restore from the checkpoint using Rust. The restoring can, however, be done by:
|
It has been 2 years, is there a nice way of doing things by now? |
Line 258 in ae92c63
Well, in 2023, there's no support for other fields too. |
What a pity that this essential functionality is not yet covered properly. |
Hi, is there a way to save the SavedModel after training having loaded the graph from a SavedModel (as opposed to initialising the layers & vars like in
examples/xor.rs
)?It seems like the SavedModelBuilder requires a collection of variables & scope which doesn't seem straightforward to get just from an already existing graph.
The text was updated successfully, but these errors were encountered: