chapter1
2018-06-12 本文已影响0人
白敏鸢
input:
import tensorflow as tf
a=tf.constant([1.0,2.0],name="a")
b=tf.constant([2.0,3.0],name="b")
result=a+b
sess=tf.Session()
sess.run(result)
output:
array([3., 5.], dtype=float32)
张量不等于数组,是一种tensorflow抽象出来的数据结构