TensorFlow报错:tf.placeholder() is not compatible with eager execution.

Posted super尚

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TensorFlow报错:tf.placeholder() is not compatible with eager execution.相关的知识,希望对你有一定的参考价值。

TensorFlow报错:tf.placeholder() is not compatible with eager execution.

解决:tf.compat.v1.disable_eager_execution()
主要还是版本不对应。

以上是关于TensorFlow报错:tf.placeholder() is not compatible with eager execution.的主要内容,如果未能解决你的问题,请参考以下文章

TensorFlow训练MNIST报错ResourceExhaustedError

Tensorflow运行程序报错 FailedPreconditionError

新安装完 tensorflow 后import tensorflow as tf 报错

tensorflow报错:Unsupported feed type

PyCharm导入tensorflow包报错的问题

Ubuntu编译Protobuf(Base tensorflow-12)报错