Variable cluster_weights already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope?
遇到这种报错,只要在代码开头加上:tf.reset_default_graph() #加入这句话,可以重新创建图,否则会报错
版权声明:本文为Mr_Brooks原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
Variable cluster_weights already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope?
遇到这种报错,只要在代码开头加上:tf.reset_default_graph() #加入这句话,可以重新创建图,否则会报错