Add operations to the graph before calling run().解决方法
问题产生的原因:无法执行sess.run()的原因是tensorflow版本不同导致的,tensorflow版本2.0无法兼容版本1.0.解决办法:tf.compat.v1.disable_eager_execution()1importtensorflowastf2tf.compat.v1.disable_eager_execution()3hello=tf.constant('Hello,Te