tensorflow提示错误:
module 'tensorflow' has no attribute 'placeholder'
解决办法:
将:
import tensorflow as tf
替换为:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
亲测解决。
tensorflow提示错误:
module 'tensorflow' has no attribute 'placeholder'
解决办法:
将:
import tensorflow as tf
替换为:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
亲测解决。