Skip to content

index.xb no such attribute #4

@gitgithan

Description

@gitgithan

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions