114. Save and load TensorFlow model weights

Model weights may be saved and loaded with:

# Save the weights
model.save_weights('filename')

# Restore the weights
model = create_model()
model.load_weights('filename')

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s