TensorFlow局部训练LibCurl错误代码6(tf.estimator.train\u和\u evaluate()错误)

2024-04-25 08:21:55 发布

您现在位置:Python中文网/ 问答频道 /正文

运行在Ubuntu 16.04上(Tensorflow初学者)。循序渐进地遵循this article

这篇文章使用Google云服务来训练这个模型,但是我想在我的计算机的显卡上进行本地训练。我把所有的文件都准备好了,一切看起来都很好,但我发现了以下错误。你知道吗

2018-08-17 12:51:31.302420: I tensorflow/core/platform/cloud/retrying_utils.cc:77] The operation failed and will be automatically retried in 1.03428 seconds (attempt 1 out of 10), caused by: Unavailable: Error executing an HTTP request: libcurl code 6 meaning 'Couldn't resolve host name', error details: Couldn't resolve host 'metadata'

下图:

enter image description here

模型_主.py代码是here。你知道吗

我们在model_main.py中将它缩小到这行代码:

tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs[0])

请让我知道你认为可能的问题。如果你需要更多的信息让我知道。非常感谢。你知道吗


Tags: and代码py模型hostubuntutensorflowarticle