ckpt转换成SavedModel
convert_ckpt_to_savermodel.py
import tensorflow as tf
import sys
trained_checkpoint_prefix = sys.argv[1]
export_dir = sys.argv[2]
graph = tf.Graph()
config=tf.ConfigProto(allow_soft_placement=True, log_device_placement=True)
with tf.compat.v1.Session(graph=graph, config=config) as
1