阅读307 返回首页    go 阿里云 go 技术社区[云栖]


TensorFlow实践_第一个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 (a)
print (b)
print (result)

sess = tf.Session()
sess.run(result)

print (result)

最后更新:2017-08-13 22:37:04

  上一篇:go  治疗IT架构“僵硬症” 几款工具提高数字化转型效率
  下一篇:go  分布式机器学习平台比较