查看“︁机器学习/tensorflow”︁的源代码
来自康健生活
←
机器学习/tensorflow
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== 引言 == tensorflow 分为 CPU 版本和 GPU 版本。 == 卸载 == == 安装 == {{shc|<syntaxhighlight lang="bash"> # cpu pip3 install --user --upgrade tensorflow # gpu pip3 install --user --upgrade 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}} 记录设备指派,查看安装的是 CPU 版本还是 GPU 版本。 {{Hc|checkCPUorGPU.py|<syntaxhighlight lang="python"> from tensorflow.python.client import device_lib print(device_lib.list_local_devices())</syntaxhighlight>}}
此页面嵌入的页面:
模板:Hc
(
查看源代码
)
模板:Hc/style.css
(
查看源代码
)
模板:Shc
(
查看源代码
)
模板:Shc/style.css
(
查看源代码
)
模板:Shc out
(
查看源代码
)
模板:Shc out/style.css
(
查看源代码
)
返回
机器学习/tensorflow
。
导航菜单
康健生活
搜索
user-page
通知
user-interface-preferences
个人工具
登录
五一
多读书,多运动,多到远处走走,再看看不一样的世界。