机器学习/tensorflow:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第9行: 第9行:
# gpu
# gpu
pip3 install tensorflow-gpu</syntaxhighlight>|$|/home/kangkk}}
pip3 install tensorflow-gpu</syntaxhighlight>|$|/home/kangkk}}
== 验证 ==
{{Shc_out|<syntaxhighlight lang="bash">
python3 -c "import tensorflow as tf; print(tf.__version__)"</syntaxhighlight>|<syntaxhighlight lang="bash">
2.7.0
</syntaxhighlight>|$|/home/kangkk}}

2022年1月11日 (二) 03:02的版本

引言

tensorflow 分为 CPU 版本和 GPU 版本。

卸载

安装

/home/kangkk
# cpu
pip3 install tensorflow
# gpu
pip3 install tensorflow-gpu

验证

[jian@kang /home/kangkk]$
python3 -c "import tensorflow as tf; print(tf.__version__)"
2.7.0