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

feat: option to use faiss-gpu for dknn #92

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Conversation

y-prudent
Copy link
Member

Faiss-cpu can be a bit slow for DKNN computation when the fit dataset is big.

An argument use_gpu has been added to parallelize the index search on GPU.

Copy link

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
2334 2160 93% 70% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
oodeel/methods/dknn.py 86% 🟢
TOTAL 86% 🟢

updated for commit: 896ab21 by action🐍

@y-prudent y-prudent requested a review from cofri April 25, 2024 07:47
Copy link
Member

@paulnovello paulnovello left a comment

Choose a reason for hiding this comment

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

Thanks for this performance feature

oodeel/methods/dknn.py Show resolved Hide resolved
@paulnovello paulnovello self-requested a review April 25, 2024 09:37
Copy link
Member

@paulnovello paulnovello left a comment

Choose a reason for hiding this comment

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

LGTM

@paulnovello paulnovello merged commit d07f64c into master Apr 25, 2024
10 checks passed
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.

2 participants