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

update saving and loading methods for faiss index so to accept path l… #1663

Merged
merged 1 commit into from
Jan 18, 2021

Conversation

tslott
Copy link
Contributor

@tslott tslott commented Dec 29, 2020

  • Update saving and loading methods for faiss index so to accept path like objects from pathlib

The current code only supports using a string type to save and load a faiss index. This change makes it possible to use a string type OR a Path from pathlib. The codes becomes a more intuitive this way I think.

@thomwolf
Copy link
Member

Seems ok for me, what do you think @lhoestq ?

Copy link
Member

@lhoestq lhoestq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed thanks :)

@lhoestq lhoestq merged commit 6f660aa into huggingface:master Jan 18, 2021
eusip pushed a commit to eusip/datasets that referenced this pull request Jan 21, 2021
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

Successfully merging this pull request may close these issues.

3 participants