机器学习/tensorflow:修订间差异
来自康健生活
< 机器学习
| 第6行: | 第6行: | ||
{{shc|<syntaxhighlight lang="bash"> | {{shc|<syntaxhighlight lang="bash"> | ||
# cpu | # cpu | ||
pip3 install tensorflow | pip3 install --user --upgrade tensorflow | ||
# gpu | # gpu | ||
pip3 install tensorflow-gpu</syntaxhighlight>|$|/home/kangkk}} | pip3 install --user --upgrade tensorflow-gpu</syntaxhighlight>|$|/home/kangkk}} | ||
== 验证 == | == 验证 == | ||
2022年1月11日 (二) 03:14的版本
引言
tensorflow 分为 CPU 版本和 GPU 版本。
卸载
安装
/home/kangkk
# cpu
pip3 install --user --upgrade tensorflow
# gpu
pip3 install --user --upgrade tensorflow-gpu
验证
[jian@kang /home/kangkk]$
python3 -c "import tensorflow as tf; print(tf.__version__)"
2.7.0
No categories