1.从helloworld谈起

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'

  

猜你喜欢

转载自www.cnblogs.com/traditional/p/9338717.html
1.