Код: Выделить всё
RuntimeError: MetaGraphDef associated with tags 'serve' could not be found in SavedModel. To inspect available tag-sets in the SavedModel, please use the SavedModel CLI: `saved_model_cli`
available_tags: [{'train', 'serve'}]
Код: Выделить всё
MetaGraphDef with tag-set: 'train, serve' contains the following SignatureDefs:
Код: Выделить всё
import tensorflow as tf
with tf.Session(graph=tf.Graph()) as sess:
tf.saved_model.loader.load(sess,[tf.saved_model.tag_constants.SERVING],'../export_dir/0/')
graph = tf.get_default_graph().as_graph_def()
with tf.gfile.GFile('./frozen.pb', "wb") as f:
f.write(graph.SerializeToString())
Подробнее здесь: https://stackoverflow.com/questions/595 ... savedmodel