我使用ctpu up命令跟随this quick start tutorial启动了一个带有TPU的实例,并且能够成功地运行MNIST教程。我注销了cloud shell,并使用SSH控制台登录到连接到TPU的虚拟机,正如here所解释的那样,当我再次运行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(*) runningctpu status命令提供了
Your cluster is running!
Compute Engine VM: RUNNING
Cloud TPU: RUNNING我是不是遗漏了什么基本的东西?
发布于 2019-03-21 09:01:05
ctpu将此名称作为环境变量(TPU_NAME)传递给计算引擎VM,但gcloud不会。
明确指定您的TPU :使用--tpu=my-tpu而不是--tpu=$TPU_NAME
https://stackoverflow.com/questions/55271748
复制相似问题