GAN not working : 'dict_values' object has no attribute 'op'
simon555 opened this issue · 0 comments
simon555 commented
All in the title,
To solve it, replace line 69-70
G_opt = tf.train.AdamOptimizer().minimize(G_obj, var_list=g_weights.values())
D_opt = tf.train.AdamOptimizer().minimize(D_obj, var_list=d_weights.values())
by
G_opt = tf.train.AdamOptimizer().minimize(G_obj, var_list=list(g_weights.values()))
D_opt = tf.train.AdamOptimizer().minimize(D_obj, var_list=list(d_weights.values()))
Maybe due to a TensorFlow update?
Best,
Simon