【E-12】Variable x already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:

   

二、错误原因

出现这个问题就是tensorflow第二次使用的是第一次的就的变量,两个变量名称是重复的

   

三、解决办法

方法一:重置图模型,刷新变量

【E-12】Variable x already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:

方法二:

修改xw的名称

   

本人采用方法一处理该错误。

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
  • 2021-07-26
  • 2022-12-23
  • 2021-09-19
  • 2021-04-22
猜你喜欢
  • 2022-12-23
  • 2021-11-07
  • 2021-07-26
  • 2022-12-23
  • 2021-11-25
  • 2022-02-01
相关资源
相似解决方案