【发布时间】:2018-11-18 21:02:30
【问题描述】:
我一直按照https://cloud.google.com/tpu/docs/custom-setup的指示进行操作
现在我正在尝试从https://cloud.google.com/tpu/docs/quickstart 运行一个小示例
但它挂在sess.run(tpu.initialize_system())
我怀疑它无法访问 TPU 网络端点,即使“gcloud beta compute tpus list”返回状态“READY”。
【问题讨论】:
-
我在使用 TF2.2 时遇到了同样的问题。我用
ctpu up --zone=europe-west4-a --disk-size-gb=50 --machine-type=n1-standard-2 --tf-version=2.2 --tpu-size v3-8 --name cola-tpu创建了 TPU + VM,但是当我运行python3 -c "import tensorflow as tf; tpu = tf.distribute.cluster_resolver.TPUClusterResolv er('cola-tpu'); tf.config.experimental_connect_to_cluster(tpu)"时它永远挂起......当前的答案没有帮助。
标签: machine-learning google-cloud-platform google-cloud-tpu