I've built and trained some networks with TensorFlow and successfully managed to save and restore the model's parameters.
However, for some scenarios - e.g. like deploying a trained network in a customer's infrastructure - it is not the best solution to ship the full code/model. Thus, I am wondering if there is any way to restore/run a trained network without the original code/model used for training?
I guess this leads to the question if TensorFlow is able to save a (compressed?) version of the network architecture into the checkpoint files in addition to the weights of the variables.
Is this somehow possible?
saver.restore(sess, "some_checkpoint_file.ckpt")andsess.run(...)without having to copy the whole codebase every time... - daniel451freeze_graph, it inlines your variables as constant nodes into graphdef -- github.com/tensorflow/tensorflow/blob/master/tensorflow/python/… - Yaroslav Bulatov