faiss安装完成后测试报错
收藏回复举报
faiss安装完成后测试报错
t('forum.solved') 已解决
发表于2024-07-10 21:28:23
0 查看

CANN版本:6.0.1

mxIndex版本:6.0.RC1

硬件平台:300I pro

执行python TestAscendIndexFlat.py(https://gitee.com/ascend/ascend-referenceapps/blob/master/mxIndex_samples/faiss-python/TestAscendIndexFlat.py)

出现如下报错,请问下,这个是什么原因?应该怎么解决?

Traceback (most recent call last): 

  File "TestAscendIndexFlat.py", line 36, in <module> 

    ascend_index_flat.add(xb) 

  File "/usr/local/python3.7.5/lib/python3.7/site-packages/faiss-1.7.4-py3.7.egg/faiss/class_wrappers.py", line 230, in replacement_add 

    self.add_c(n, swig_ptr(x)) 

  File "/usr/local/python3.7.5/lib/python3.7/site-packages/ascendfaiss-1.0.0-py3.7.egg/ascendfaiss/swig_ascendfaiss.py", line 740, in add 

    return _swig_ascendfaiss.AscendIndex_add(self, n, x) 

RuntimeError: Error in faiss::ascend::AscendIndexFlatImpl::add2DeviceFastImpl(int, uint16_t*, const idx_t*)::<lambda(int)> at ascend/impl/AscendIndexFlatImpl.cpp:274: Error: 'ret == ::ascend::APP_ERR_OK' failed: Failed to add to index, result is: 2010

我要发帖子