查找Tensorflow图的参数

时间:2019-03-27 06:18:09

标签: python-3.x tensorflow machine-learning computer-vision

我有this TensorFlow图。我使用以下脚本成功获取了此图的input_arrays和output_arrays:

CREATE RULE log_employee AS ON UPDATE TO employee
    WHERE NEW.lts_i <> OLD.lts_i or NEW.lts_O <> OLD.lts_O
    DO UPDATE employee set today = current_date where id = new.id;

我被困在无法获得的地方:

import tensorflow as tf
gf = tf.GraphDef()   
m_file = open('deeplabv3_mnv2_pascal_tain.pb','rb')
gf.ParseFromString(m_file.read())

for n in gf.node:
    print( n.name )

来自同一张图。如果我只有this图,如何获得此信息。

0 个答案:

没有答案