The save weights() method can be used to save the weights of all the layers. It keeps track of the weights of the model’s layers. When saving a model using tensorflow, it is recommended to use the save() method rather than the save weights() method.