In tensorflow's documentation, the description of save_weights_only
parameter of ModelCheckpoint is as follows:
if True, then only the model's weights will be saved (model.save_weights(filepath)), else the full model is saved (model.save(filepath)).
What does it mean by "the full model is saved"? I know that we use model.load_weights('path/to/model')
when save_weights_only=True
. But what's different when it's False? I.e. what additional information is saved besides the weights? And how can we load this "full model"? Do we still need to define its layers and compile it before loading the saved model?