faiss_tips icon indicating copy to clipboard operation
faiss_tips copied to clipboard

index.xb no such attribute

Open gitgithan opened this issue 2 years ago • 1 comments

In the section std::vector to/from np.array, index.xb is used but this attribute no longer exists.

A newer example using index.get_xb() works (https://github.com/facebookresearch/faiss/issues/2266#issuecomment-1072315659)

However I'm not clear why the 2nd parameter to faiss.rev_swig_ptr can be any number. It looks like gibberish values after n * d meaningful vector values are seen in the first n * d array positions.

gitgithan avatar Feb 17 '23 03:02 gitgithan

Thanks for flagging. The content of this repo is a bit outdated. I need to update it some day...

If you encounter any other problems, I'd be very grateful if you'd let me know.

matsui528 avatar Feb 20 '23 04:02 matsui528