运行WaterGAN时出现:
AttributeError: module 'tensorflow._api.v1.compat.v1' has no attribute 'placeholder'
(这里我替换时出现错误,把placeholder->placeholderr,所以一定一定要细心细心细心)
将
import tensorflow as tf
改为
import tensorflow.compat.v1 as tf
运行WaterGAN时出现:
AttributeError: module 'tensorflow._api.v1.compat.v1' has no attribute 'placeholder'
(这里我替换时出现错误,把placeholder->placeholderr,所以一定一定要细心细心细心)
将
import tensorflow as tf
改为
import tensorflow.compat.v1 as tf