Skip to content

Instantly share code, notes, and snippets.

@hadifar
Created December 2, 2018 12:28
Show Gist options
  • Save hadifar/3ea5e30a8dd1971b377caf3e8b2226d3 to your computer and use it in GitHub Desktop.
Save hadifar/3ea5e30a8dd1971b377caf3e8b2226d3 to your computer and use it in GitHub Desktop.
from keras.models import load_model
model.save('my_model.h5')
del model # deletes the existing model
# returns a compiled model
# identical to the previous one
model = load_model('my_model.h5')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment