tensorflow meta 获取pb

import tensorflowas tf

with tf.Session()as sess:

saver = tf.train.import_meta_graph('../data/mxnet/model.ckpt-29999.meta')

saver.restore(sess, tf.train.latest_checkpoint('../data/mxnet/'))

tf.train.write_graph(sess.graph_def, 'graph', 'model.ph', False)

你可能感兴趣的:(tensorflow meta 获取pb)