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

confusion in knn's BruteForceTask #1093

Open
htz2507 opened this issue Oct 15, 2020 · 1 comment
Open

confusion in knn's BruteForceTask #1093

htz2507 opened this issue Oct 15, 2020 · 1 comment
Assignees
Labels

Comments

@htz2507
Copy link

htz2507 commented Oct 15, 2020

oneDAL/cpp/daal/src/algorithms/k_nearest_neighbors/bf_knn_impl.i

Focus on the struct of BruteForceTask:
the outBlockSize depicts the size of vectors needed to find k neighbors. Thus kDistancesSize should be outBlockSize * k *sizeof(FPType) instead of inBlockSize * k * sizeof(FPType).
so do to kIndexesSize and maxSize.

@htz2507 htz2507 closed this as completed Oct 15, 2020
@htz2507 htz2507 reopened this Oct 15, 2020
KulikovNikita pushed a commit to KulikovNikita/daal that referenced this issue Jan 5, 2023
@Braza
Copy link

Braza commented Feb 19, 2024

@htz2507 could you please check whether this was fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants