zoukankan      html  css  js  c++  java
  • ValueError: Variable wc1 already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:

    在运行验证码(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()
  • 相关阅读:
    h5-7
    h5-6
    h5-5
    h5-4
    h5-3
    h5-2
    return
    字符串的常用操作
    字符串中的转义字符
    字典的统计,合并,清空操作
  • 原文地址:https://www.cnblogs.com/smile321/p/14180199.html
Copyright © 2011-2022 走看看