【问题标题】:Colaboratory Google GPU协作谷歌 GPU
【发布时间】:2018-03-07 10:39:44
【问题描述】:

我正在尝试将 Google Colaboratory 与 GPU 一起使用。我提到我在 Windows 上工作,但这应该没有效果。我从设置中选择了带有 Python3 的 GPU 加速器。当我将鼠标悬停在 Connected 上时,它说我已连接到“Python 3 Google Compute Engine backend (GPU)”,但是当我尝试使用

检查 gpu 时
import tensorflow as tf
tf.test.gpu_device_name()

我什么也得不到。空字符串。没有错误,但我似乎无法连接到 GPU。有没有人有这个问题?你是怎么解决的?

【问题讨论】:

    标签: tensorflow gpu google-colaboratory


    【解决方案1】:

    转到编辑菜单,然后选择笔记本设置。在硬件加速器中选择GPU,默认为None

    【讨论】:

    • 感谢您的回答,但我已经这样做了,即使它似乎连接成功,但尝试查找 GPU 却导致错误。
    猜你喜欢
    • 2018-10-09
    • 2020-07-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-10
    • 2021-10-28
    • 2022-06-22
    • 2022-01-03
    相关资源
    最近更新 更多