【问题标题】:GCP: Unable to connect to cloud TPUGCP:无法连接到云 TPU
【发布时间】:2019-03-20 23:45:12
【问题描述】:

我按照this quick start tutorial 使用ctpu up 命令启动了一个带有TPU 的实例,并且我能够成功运行MNIST 教程。如here 所述,我退出了云外壳并使用 SSH 控制台登录到连接到 TPU 的虚拟机,当我再次运行 MNIST 教程时,我得到了

RuntimeError: Cannot find any TPU cores in the system. Please double check Tensorflow master address and TPU worker(s).

当我运行ctpu ls 时,我得到了

#       Flock Name      Status
0:      my-tpu(*)  running

ctpu status 命令给出

Your cluster is running!
Compute Engine VM:  RUNNING
Cloud TPU:          RUNNING

我在这里缺少一些基本的东西吗?

【问题讨论】:

    标签: python tensorflow google-cloud-platform tpu


    【解决方案1】:

    ctpu 将此名称作为环境变量 (TPU_NAME) 传递给 Compute Engine 虚拟机,但 gcloud 不会。

    明确指定您的 TPU:使用 --tpu=my-tpu 而不是 --tpu=$TPU_NAME

    【讨论】:

      猜你喜欢
      • 2019-07-23
      • 2020-08-18
      • 2020-11-06
      • 1970-01-01
      • 2018-11-18
      • 1970-01-01
      • 1970-01-01
      • 2019-08-06
      • 2021-04-08
      相关资源
      最近更新 更多