【发布时间】:2021-02-16 05:10:51
【问题描述】:
import tensorflow as tfimport tensorflow_hub as hubmodule_url = "https://tfhub.dev/tensorflow/bert_en_uncased_L-24_H-1024_A-16/1"bert_layer = hub.KerasLayer(module_url, trainable=True)
我正在使用 Kaggle Notebook 来完成这项工作。从 TensorFlow Hub 导入任何嵌入层都会导致 URL 错误。谁能指导我解决这个问题?
报错信息如下:URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
【问题讨论】:
标签: python tensorflow machine-learning nlp tensorflow-hub