尝试使用以下代码使用 Tensorflow Hub 导入一些模型:
import tensorflow as tf
import tensorflow_hub as hub
elmo_model = hub.Module('https://tfhub.dev/google/elmo/2', trainable=True)
让我的笔记本卡住了。在卡住之前出现的唯一日志行是:
INFO:tensorflow:使用 /tmp/tfhub_modules 缓存模块。
如何解开它并允许我从 Tensorflow Hub 导入模型?