| | | |
1、确认python为2.7.0以上版本
2、安装
- pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
-
复制代码
3、测试hello world
- vim tf_hello.py
-
- import tensorflow as tf
- sess = tf.Session()
- a = tf.constant(100)
- b = tf.constant(20)
- print sess.run(a+b)
复制代码
4、执行hello world
| | | | |
|