代码提示RuntimeError: The Session graph is empty.
在pycharm中引用tensorflow模块,如下:
import tensorflow as tf
hello = tf.constant("hello world")
sess = tf.compat.v1.Session()
print(sess.run(hello))
结果提示
在pycharm中引用tensorflow模块,如下:
import tensorflow as tf
hello = tf.constant("hello world")
sess = tf.compat.v1.Session()
print(sess.run(hello))
结果提示