Tensorflow2.x .h5文件转换为pb文件
import tensorflow as tffrom tensorflow.python.framework.convert_to_constants import convert_variables_to_constants_v2def convert_h5to_pb():model = tf.keras.models.load_model("./MODEL.h5",compile=False)model.summary()full_model = tf.function