import tensorflow as tf model = tf.keras.models.load_model("tf_model.h5") tf.saved_model.save(model, "")