-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: type
to initialized an Operator can not be None.
#41
Comments
上面的bug报错看不清楚可以看这个 : |
能贴一下报错代码片段嘛? |
这是我使用rocket服务的地方
这是我对返回结果进行处理的然后报错的地方 |
我在试图将rocketqa配合haystack中的milvus document使用。我参考教程,在DualEncoder的模型中,对rocketqa生成的问题向量进行序列化的时候,在我的项目部署过程中产生了bug。其中,query_emb= model.encode_query(query)。
File "/*****************************************/******.py", line 177, in retrieve query_emb = np.array(list(query_emb)) File "/usr/local/lib/python3.8/site-packages/rocketqa/encoder/dual_encoder.py", line 168, in encode_query q_rep = self.exe.run(program=self.test_prog, File "/usr/local/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1299, in run six.reraise(*sys.exc_info()) File "/usr/local/lib/python3.8/site-packages/six.py", line 719, in reraise raise value File "/usr/local/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1285, in run res = self._run_impl( File "/usr/local/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1431, in _run_impl program = self._add_feed_fetch_ops( File "/usr/local/lib/python3.8/site-packages/paddle/fluid/executor.py", line 767, in _add_feed_fetch_ops tmp_program = program.clone() File "/usr/local/lib/python3.8/site-packages/paddle/fluid/framework.py", line 5443, in clone p._sync_with_cpp() File "/usr/local/lib/python3.8/site-packages/paddle/fluid/framework.py", line 5983, in _sync_with_cpp block._sync_with_cpp() File "/usr/local/lib/python3.8/site-packages/paddle/fluid/framework.py", line 3771, in _sync_with_cpp op = Operator(self, op_desc) File "/usr/local/lib/python3.8/site-packages/paddle/fluid/framework.py", line 2594, in __init__ raise ValueError( ValueError:
typeto initialized an Operator can not be None.
另外这个bug只有在远程部署的时候会报错。我很疑惑,有人能给我一些帮助吗
The text was updated successfully, but these errors were encountered: