【发布时间】:2019-01-15 14:20:31
【问题描述】:
在运行以下程序以加载 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
【问题讨论】:
标签: macos python-2.7 tensorflow tensorflow-hub