【问题标题】:GCE VM can't connect to TPUGCE VM 无法连接到 TPU
【发布时间】: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


【解决方案1】:

在创建计算引擎 VM 和 Cloud TPU 资源时,请通过指定 flags 确保您位于同一网络和子网中。

【讨论】:

  • TPU 和 VM 是否必须在同一区域和同一网络中?
  • @soulmachine 是的。事实上,VM 和 TPU 也必须具有相同的名称。
  • 这个完整的标志列表没有帮助。给个运行命令的例子怎么样?
猜你喜欢
  • 1970-01-01
  • 2016-05-16
  • 1970-01-01
  • 1970-01-01
  • 2019-06-11
  • 1970-01-01
  • 2019-08-06
  • 2021-04-08
  • 2015-06-03
相关资源
最近更新 更多