更新文件 安装_Tensorflow.md
This commit is contained in:
parent
feef1a7fb3
commit
7eaf2e35c3
|
@ -1,5 +1,7 @@
|
||||||
# 安装 Tensorflow
|
# 安装 Tensorflow
|
||||||
|
|
||||||
|
## 安装
|
||||||
|
|
||||||
注意区分 python2 还是 python3,使用
|
注意区分 python2 还是 python3,使用
|
||||||
|
|
||||||
pip2 install numpy
|
pip2 install numpy
|
||||||
|
@ -43,3 +45,15 @@
|
||||||
| 0.12.1 | 2016-12-20 |
|
| 0.12.1 | 2016-12-20 |
|
||||||
|
|
||||||
更详细的版本历史请访问:<https://pypi.org/project/tensorflow/#history>
|
更详细的版本历史请访问:<https://pypi.org/project/tensorflow/#history>
|
||||||
|
|
||||||
|
## 验证
|
||||||
|
|
||||||
|
在 python 环境下输入以下指令进行验证
|
||||||
|
|
||||||
|
>>> import tensorflow as tf
|
||||||
|
>>> hello = tf.constant('Hello, TensorFlow!')
|
||||||
|
>>> sess = tf.Session()
|
||||||
|
>>> print(sess.run(hello))
|
||||||
|
Hello, TensorFlow!
|
||||||
|
|
||||||
|
如果能正确打印这说明安装成功。
|
||||||
|
|
Loading…
Reference in New Issue