tensorflow op名字和node名字

1
2
3
4
5
6
7
8
with tf.name_scope('ab'):
a = tf.Variable(tf.constant(1), name="v1")

a.name
u'ab_1/v1:0'

a.op.name
u'ab_1/v1'
请作者喝一杯咖啡☕️