TensorFlow测试程序,如果正常运行,输出 b'hello,tensorf' ,则TensorFlow安装成功。
import tensorflow as tf hello = tf.constant('hello,tensorf') sess = tf.Session() print(sess.run(hello))