3.1 TensorFlow 基础
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
import tensorflow as tf
# 创建一个常量运算,将作为一个节点加入到默认计算图中
hello = tf.constant("Hello, World!")
# 创建一个TF对话
sess = tf.Session()
# 运行并获得结果
print(sess.run(hello))