[英]GCP: Unable to connect to cloud TPU
I started an instance with TPU by following this quick start tutorial using ctpu up
command and I was able to run MNIST tutorial successfully. 我通过使用ctpu up
命令遵循此快速 ctpu up
教程来启动 TPU实例,并且能够成功运行MNIST教程。 I logged out of cloud shell and logged into my vm connected to TPU using SSH console as explained here , when I run MNIST tutorial again I'm getting 我退出云外壳并登录到我的虚拟机使用SSH控制台解释连接到TPU 在这里 ,当我运行MNIST教程再次我越来越
RuntimeError: Cannot find any TPU cores in the system. Please double check Tensorflow master address and TPU worker(s).
When I run ctpu ls
, I get 当我运行ctpu ls
,我得到
# Flock Name Status
0: my-tpu(*) running
ctpu status
command gives ctpu status
命令给出
Your cluster is running!
Compute Engine VM: RUNNING
Cloud TPU: RUNNING
Am I missing something basic here? 我在这里缺少基本的东西吗?
ctpu
passes this name to the Compute Engine VM as an environment variable ( TPU_NAME
), but gcloud
doesn't. ctpu
将此名称作为环境变量( TPU_NAME
)传递给Compute Engine VM,但gcloud
却没有。
Specify your TPU explicitly: use --tpu=my-tpu
instead of --tpu=$TPU_NAME
明确指定您的TPU:使用--tpu=my-tpu
而不是--tpu=$TPU_NAME
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.