Skip to content

Instantly share code, notes, and snippets.

@syaffers
Created May 15, 2018 17:41
Show Gist options
  • Save syaffers/c9d4b5f1d19cfb16d5e35e7510d1b5b7 to your computer and use it in GitHub Desktop.
Save syaffers/c9d4b5f1d19cfb16d5e35e7510d1b5b7 to your computer and use it in GitHub Desktop.
Get the version of Keras from a trained h5 file
import h5py
f = h5py.File('Model.h5', 'r')
print(f.attrs.get('keras_version'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment