Tensorflow中使用tf.variable_scope()而scope名字自动加"_1"
最近在使用tf.variable_scope()对参数进行空间的划分,结果在最后保存为pb文件时,发现scope名字中莫名地被自动添加了"_1"、"_2"等内容,如下代码所示
with tf.variable_scope('test'):
p1 = tf.placeholder(tf.float32, shape=(3,3), name='p1') #output: test/p...
原创
2018-08-28 00:21:08 ·
1351 阅读 ·
2 评论