(WaterGAN)AttributeError: module ‘tensorflow‘ has no attribute ‘pack‘

在运行WaterGAN代码时出现:

AttributeError: module 'tensorflow' has no attribute 'pack'

eta = tf.pack([eta_r,eta_g,eta_b],axis=3)   

改为:

 eta = tf.stack([eta_r,eta_g,eta_b],axis=3)   

即把将所有pack->stack

猜你喜欢

转载自blog.csdn.net/demo_jie/article/details/107772917