无法从本地缓存在 MAC 上加载 universal-sentence-encoder-large/3

Not able to load universal-sentence-encoder-large/3 on MAC from local cache

同时 运行 下面的程序加载 universal-sentence-encoder-large/3 出现以下错误

import tensorflow_hub as hub
m = hub.Module("tensorflow_objects/USEL3")

错误日志如下

INFO:tensorflow:Using /var/folders/lb/qcf6q0rd29g422mh1gst4k2r0000gn/T/tfhub_modules to cache modules.
INFO:tensorflow:Op RegexReplace is missing from both the python and C++ registry.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pyenv/lib/python2.7/site-packages/tensorflow_hub/module.py", line 126, in __init__
    tags=self._tags)
  File "pyenv/lib/python2.7/site-packages/tensorflow_hub/native_module.py", line 282, in _create_impl
    name=name)
  File "pyenv/lib/python2.7/site-packages/tensorflow_hub/native_module.py", line 325, in __init__
    op.name for op in self._meta_graph.meta_info_def.stripped_op_list.op})
  File "pyenv/lib/python2.7/site-packages/tensorflow_hub/native_module.py", line 712, in register_ops_if_needed
    % missing_ops.difference(set(cpp_registry_ops.keys())))
RuntimeError: Graph ops missing from the python registry (set([u'RegexReplace'])) are also absent from the c++ registry

这可能意味着您 运行 使用的是较旧的 tensorflow 版本。