TensorBoard 无法读取 Google 云存储上的摘要

TensorBoard can not read summaries on Google Cloud Storage

当我将 TensorBoard 与 TensorFlow v0.9.0 一起使用时,TensorFlow 可以读取 Google 云存储上的摘要作为 tensorboard --logdir=gs://...

但是,带有 TensorFlow v0.11.0 的 TensorBoard 无法读取它。 从 v0.9.0 到 v0.11.0 有什么变化吗?

报错信息如下

W tensorflow/core/platform/cloud/google_auth_provider.cc:151] All attempts to get a Google authentication bearer token failed, returning an empty token. Retrieving token from files failed with "Unavailable: libcurl failed with error code 23: Failed writing body (101 != 188)". Retrieving token from GCE failed with "Unavailable: Unexpected response code 0".

可以试试 运行 gcloud auth application-default login 吗?之后 TensorBoard 应该能够获得访问 GCS 所需的凭据。

原因是 TensorBoard 现在使用应用程序默认凭据,请参阅 https://developers.google.com/identity/protocols/application-default-credentials