TensorFlow学习笔记(一)

1. 安装

真正从零开始,TensorFlow 详细安装入门图文教程:
http://www.leiphone.com/news/201606/ORlQ7uK3TIW8xVGF.html

2. 试用

第一个Demo: test.py

import tensorflow as tf

hello = tf.constant(‘Hello, TensorFlow!’)
sess = tf.Session()
print sess.run(hello)

a = tf.constant(10)
b = tf.constant(32)
print sess.run(a+b)

posted @ 2016-10-19 20:42  怡人Iris  阅读(80)  评论(0编辑  收藏  举报