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

Variable cluster_weights already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope?

Variable cluster_weights already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_第1张图片

遇到这种报错,只要在代码开头加上:tf.reset_default_graph()   #加入这句话,可以重新创建图,否则会报错

你可能感兴趣的:(知识积累)