oneDAL
oneDAL copied to clipboard
confusion in knn's BruteForceTask
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 could you please check whether this was fixed?