Installation TensorFlow (pip way)
Installation and pip3 python3
First, you need to install python and pip:
|
|
Then there will be coexistence python 2.7 and 3.5, the default version is 2.7, in order to use python 3.5 and pip3 default, you can add the following sentence to rename in the .bash_profile:
|
|
Verify the version with the following command:
|
|
Canceled renaming, only you need to perform unalias:
|
|
Then start the installation tensorflow CPU version, then install version 0.12.1:
|
|
“2.20 更新”Google 于2017年2月16日(北京时间)凌晨2点在美国加利福尼亚州山景城举办了首届 TensorFlow 开发者峰会。Google 现场宣布全球领先的深度学习开源框架 TensorFlow 正式对外发布V1.0版本,并保证 Google 的本次发布版本的 API 接口满足生产环境稳定性要求。升级到1.0很简单,执行以下命令即可:
|
|
确认安装路径:
|
|
查看目录结构:
|
|
运行 TensorFlow
从命令行运行 TensorFlow
执行命令如下:
|
|
运行 TensorFlow demo
这个 Demo 是用 MNIST 数据集进行手写字符的训练和测试:
|
|
主机是分配了4个核的 E7- 4830 @ 2.13GHz 虚机,每步耗时205 ms左右。
“2.20 更新”在 r1.0 下运行可能会遇到参数错误的问题,如下:
|
|
可参考 Fix *_cross_entropy_with_logits calls #864, 将
|
|
Changed
|
|
Reference
TensorFlow Developer Summit heavyweight -Google release TensorFlowV1.0
Isuue with models/tutorials/image/mnist #857
Original link large column https://www.dazhuanlan.com/2019/08/16/5d55fe046f530/