Tensorflow:如何在Tensorboard中查看检查点?

时间:2019-03-14 10:09:21

标签: python tensorflow deep-learning tensorboard

假设我有内容检查点:

checkpoint
├── model.ckpt-240000.data-00000-of-00001
├── model.ckpt-240000.index
└── model.ckpt-240000.meta

是否可以在张量板上查看检查点的内容,还是只能转换为.pb格式?

1 个答案:

答案 0 :(得分:2)

看起来可以这样完成:

import tensorflow as tf

g = tf.Graph()

with g.as_default() as g:
    tf.train.import_meta_graph('./checkpoint/model.ckpt-240000.meta')

with tf.Session(graph=g) as sess:
    file_writer = tf.summary.FileWriter(logdir='checkpoint_log_dir/faceboxes', graph=g)

然后是tensorboard --logdir checkpoint_log_dir/faceboxes/