I am using a code from github, using TF 2.2, the model is a keras model written in tf.keras.engine.training_v1.Model. I could save the model to h5 using model
tf.keras.engine.training_v1.Model
model