tensorflow代码过程中遇到的问题(持续更新)

# Variable conv1/weights/Adam/ 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(tf.get_variable_scope()) as scope:
  for i in xrange(2):
    ... code as before until ...reuse_varables() ....

猜你喜欢

转载自blog.csdn.net/gbyy42299/article/details/79707269