I found there are different ways to save/restore models and variables in Tensorflow
. These ways including:
In tensorflow's documentations, I found some differences between them:
tf.saved_model
is a thin wrapper aroundtf.train.Saver
tf.train.Checkpoint
support eager execution buttf.train.Saver
not.tf.train.Checkpoint
not creating.meta
file but still can load graph structure (here is a big question! how it can do that?)
How tf.train.Checkpoint
can load graph without .meta
file? or more generally What is the difference between tf.train.Saver
and tf.train.Checkpoint
?