Skip to content
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

index.xb no such attribute #4

Open
gitgithan opened this issue Feb 17, 2023 · 1 comment
Open

index.xb no such attribute #4

gitgithan opened this issue Feb 17, 2023 · 1 comment
Assignees

Comments

@gitgithan
Copy link

gitgithan commented Feb 17, 2023

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 (facebookresearch/faiss#2266 (comment))

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.

@matsui528
Copy link
Owner

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 matsui528 self-assigned this Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants