tensorflow2.0提示错误:
module 'tensorflow' has no attribute 'placeholder'
解决办法:
不要使用:
import tensorflow as tf
替换为:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
tensorflow的新变化,后续查到具体的文档,再补充。
原文地址:https://stackoverflow.com/questions/37383812/tensorflow-module-object-has-no-attribute-placeholder
博客主要讲述了TensorFlow2.0提示错误的解决办法,虽未明确具体错误及替换内容,但提及后续会补充具体文档,还给出了相关问题的原文地址。
5435

被折叠的 条评论
为什么被折叠?



