小编pou*_*vey的帖子

使用 Tensorflow Hub 时范围变量出错

我正在使用 Colab 运行文本分析代码。我想从 tensorflow_hub获得通用句子编码器大。但是任何时候运行包含以下代码的块:

module = hub.Module("https://tfhub.dev/google/universal-sentence-encoder-large/3")
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

    RuntimeError: variable_scope module_8/ was unused but the 
    corresponding name_scope was already taken.
Run Code Online (Sandbox Code Playgroud)

如果您知道如何修复此错误,我将不胜感激?

google-colaboratory tensorflow-hub

7
推荐指数
2
解决办法
6111
查看次数