Hi, I'm relatively new to TensorFlow and learning how to save / free models and restore.
Can anyone clarify pls:
- any difference between "saving a model" vs. "freezing a model" ? or just different in terminologies, different people using different terms for same things..
- I found 2 ways to achieve this :
a) Saver class
- Create a saver object = tf.train.Saver()
- call the saver.save() method to save variables to checkpoint files
b) SavedModelBuilder class
- create a builder object = tf.saved_model.builder.SavedModelBuilder(export_dir)
- use builder.add_meta_graph_and_variables(sess, [tag_constants.TRAINING], signature_def_map=foo_signatures, assets_collection=foo_assets)
- call builder.save() method
are the two more or less same (one perhaps new, other legacy / old).. what pros & cons, when will you use one over the other
Also I noticed, one saves graph & model in .meta, .index, .data, .checkpoint files, while the other saves .pb|pbtxt, .index, .data and no .checkpoint file...
Any clarification in this regard will be highly appreciatble :)
Thanks a lot
Cheers!
/Vibhor