欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

使用tensorflow顯示pb模型的所有網(wǎng)絡(luò)結(jié)點方式

 更新時間:2020年01月23日 17:45:09   作者:南有木兮木不知  
今天小編就為大家分享一篇使用tensorflow顯示pb模型的所有網(wǎng)絡(luò)結(jié)點方式,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧

代碼如下:

import tensorflow as tf
from tensorflow.python.platform import gfile

model = 'pb_path'
graph = tf.get_default_graph()
graph_def = graph.as_graph_def()
graph_def.ParseFromString(gfile.FastGFile(model, 'rb').read())
tf.import_graph_def(graph_def, name='graph')
summaryWriter = tf.summary.FileWriter('log/', graph)

使用步驟:

1.修改display_model_nodes.py里的model定義為自己的pb模型

2.python display_model_nodes.py會在log里生成out日志

3.tensorboard --logdir=log

且會在下方出現(xiàn)網(wǎng)頁地址 TensorBoard 1.10.0 at http://oeasy:6006 (Press CTRL+C to quit)

4.在瀏覽器中打輸入:http://oeasy:6006就能看到模型的各個節(jié)點了

結(jié)果如下:

以上這篇使用tensorflow顯示pb模型的所有網(wǎng)絡(luò)結(jié)點方式就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論