Skip to content

Commit

Permalink
Update kdtree_knn_classification_train_dense_default_impl.i
Browse files Browse the repository at this point in the history
  • Loading branch information
icfaust authored Sep 6, 2024
1 parent c99f49d commit e6528a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ algorithmFpType KNNClassificationTrainBatchKernel<algorithmFpType, training::def
algorithmFpType * subSamples, size_t subSampleCapacity, Status & status)
{
algorithmFpType samples[__KDTREE_MEDIAN_RANDOM_SAMPLE_COUNT + 1];
const size_t sampleCount = sizeof(samples) / sizeof(samples[0]);
const size_t sampleCount = __KDTREE_MEDIAN_RANDOM_SAMPLE_COUNT + 1;

if (end - start <= sampleCount)
{
Expand Down

0 comments on commit e6528a6

Please sign in to comment.