python小程序使用tensorflow

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;
print(result)
sess=tf.Session()
print(sess.run(result))
sess.close()

你可能感兴趣的:(python)