oneDAL icon indicating copy to clipboard operation
oneDAL copied to clipboard

confusion in knn's BruteForceTask

Open htz2507 opened this issue 3 years ago • 1 comments

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 avatar Oct 15 '20 10:10 htz2507

@htz2507 could you please check whether this was fixed?

Braza avatar Feb 19 '24 16:02 Braza