[WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
bert_preprocess_model = hub.KerasLayer('https://tfhub.dev/tensorflow/bert_en_uncased_preprocess/3')
解决:
①将 https://tfhub.dev修改为https://storage.googleapis.com/tfhub-modules
②将 /3修改为 /3.tar.gz
问题解决