tensorflow 2 save just the weights of the modle code example Example: load saved model tensorflow new_model = tf.keras.models.load_model('my_model.h5')