問題:
ValueError: Variable global_graph/conv__1/bn/tower_1/global_graph/conv__1/bn/moments/Squeeze/ExponentialMovingAverage/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=tf.AUTO_REUSE in VarScope?
代碼:
with tf.variable_scope(‘scope’) as sc:
batch_size = points.get_shape()[0].value
num_point = points.get_shape()[1].value
修改後:
with tf.variable_scope(‘scope’,reuse=tf.AUTO_REUSE) as sc:
batch_size = points.get_shape()[0].value
num_point = points.get_shape()[1].value