import tensorflow as tf # 创建一个常量,operation(操作) hw = tf.constant('hello world,i love tensorflow') # 创建一个会话 sess = tf.Session() # 运行graph(计算图) print(sess.run(hw)) # 关闭session会话 sess.close()
b'hello world,i love tensorflow'
import tensorflow as tf # 创建一个常量,operation(操作) hw = tf.constant('hello world,i love tensorflow') # 创建一个会话 sess = tf.Session() # 运行graph(计算图) print(sess.run(hw)) # 关闭session会话 sess.close()
b'hello world,i love tensorflow'