机器学习tensorflow新手向
环境:
MAC(10.12.2)
PYTHON3.5
一、资料
http://wiki.jikexueyuan.com/project/tensorflow-zh/
二、MAC安装
安装pip3:sudo easy_install pip3
安装tensorflow:
sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0-py3-none-any.whl
三、跑第一个
import tensorflow as tf
hello = tf.constant('Hello,␣TensorFlow!')
sess = tf.Session()
print(sess.run(hello)) Hello, TensorFlow!
a = tf.constant(10)
b = tf.constant(32)
print(sess.run(a + b)) 42