閱讀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  分布式機器學習平台比較