Skip to content

Instantly share code, notes, and snippets.

@vipul79321
Created June 22, 2019 12:18
Show Gist options
  • Save vipul79321/09f746ba750b0d9fc038e59ef647632b to your computer and use it in GitHub Desktop.
Save vipul79321/09f746ba750b0d9fc038e59ef647632b to your computer and use it in GitHub Desktop.
model_json = model.to_json()
with open("model_final.json", "w") as json_file:
json_file.write(model_json)
# serialize weights to HDF5
model.save_weights("model_final.h5")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment