tf中的op就是node。
所有tensorflow操作,都会生成tf node。
打印所有node:
for n in tf.get_default_graph().as_graph_def().node:
print(n.name)
train时的graph往往会比test时的graph多很多node(例如:tf预处理操作,甚至包括读tfrecord)。
但是output node在train、test阶段基本上是保持一致的。
tf中的op就是node。
所有tensorflow操作,都会生成tf node。
打印所有node:
for n in tf.get_default_graph().as_graph_def().node:
print(n.name)
train时的graph往往会比test时的graph多很多node(例如:tf预处理操作,甚至包括读tfrecord)。
但是output node在train、test阶段基本上是保持一致的。