name_scope和 variable_scope区别 发表于 2018-02-Mon | 阅读次数: 变量的全局名和variable_scope有关,和name_scope无关123456789101112131415import tensorflow as tfv = tf.Variable( [2,2,3,32],name='weights')with tf.variable_scope('variable_scope'): v1 = tf.get_variable('weights', [2,2,3,32])with tf.name_scope('name_scope'): v2 = tf.get_variable('weights',[2,2,3,32])print v.nameprint v1.nameprint v2.name---weights:0variable_scope/weights:0weights_1:0请作者喝一杯咖啡☕️打赏微信支付