2016-11-27 454 views
2

当我将TensorBoard与TensorFlow v0.9.0配合使用时,TensorFlow可以将Google云端存储的摘要读取为​​tensorboard --logdir=gs://...TensorBoard无法读取Google云端存储中的摘要

但是,带有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".

回答

5

能否请您尝试运行gcloud auth application-default login?在此之后,TensorBoard应该能够获得访问GCS所需的凭证。

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

+0

运行'gcloud身份验证应用程序默认login'没有解决错误信息给我。任何其他想法? – Orny

+0

嗨!对不起,延迟。你可以试试TF 1.0或TF 1.0.1,看看错误是否仍然存在? TensorFlow现在静态链接它的libcurl版本,而不是动态地使用系统中安装的libcurl版本,这可能与TensorFlow代码有一些不兼容。另外,在最近的几个月中对于如何在libcurl集成中处理写入缓冲区进行了一些更改。 –

相关问题