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

[C API] Update for compatibility with v1.5 #858

Merged
merged 4 commits into from
Jun 12, 2019

Conversation

Enet4
Copy link
Contributor

@Enet4 Enet4 commented Jun 12, 2019

The recent major updates to faiss included a few API changes which made the C API no longer compile. The changes made (small summary below) aim to make things work again, rather than exposing the latest features. The latter can be done in future PRs, and I'll be listening to related issues in the event that someone is interested in them.

  • Move IndexShards (out of MetaIndexes_c) into a dedicated module IndexShards_c
  • Remove getter/setters to unreachable fields and non-existing methods in the latest API
  • Reimplement faiss_IndexIVF_imbalance_factor (to retrieve the same output from the inner invlists)
  • Remove FaissQueryResult, provide FaissRangeQueryResult instead
  • Minor documentation tweaks
  • The C API was relicensed to MIT for consistency with the rest of the project. Hopefully this change is desirable, do you agree?

Enet4 added 4 commits June 12, 2019 11:47
- move IndexShards to dedicated module IndexShards_c.{h|cpp}
- remove getter/setters to unreachable fields
- reimplement faiss_IndexIVF_imbalance_factor (to use invlists)
- minor IndexIVF documentation tweaks
- Remove QueryResult, provide RangeQueryResult
- Remove unavailable method setTempMemoryFraction
In accordance to the rest of the project
@beauby
Copy link
Contributor

beauby commented Jun 12, 2019

Thanks @Enet4 – this is indeed desirable.

@beauby beauby merged commit 2bfbead into facebookresearch:master Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants