其他分享
首页 > 其他分享> > ValueError: Variable wc1 already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO

ValueError: Variable wc1 already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO

作者:互联网

在运行验证码(cnn)的识别代码时报错:ValueError: Variable wc1 already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at

原因:重复使用变量wc1

解决方案:在代码前面加上以下一行代码

tf.reset_default_graph()

 

标签:wc1,already,reuse,exists,defined,tf
来源: https://www.cnblogs.com/smile321/p/14180199.html