Created
December 26, 2019 19:02
-
-
Save himanshurawlani/ccb36828171d292888352bcfd5d745c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def export(input_h5_file, export_path): | |
# The export path contains the name and the version of the model | |
tf.keras.backend.set_learning_phase(0) # Ignore dropout at inference | |
model = tf.keras.models.load_model(input_h5_file) | |
model.save(export_path, save_format='tf') | |
print(f"SavedModel created at {export_path}") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment