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

fix nans in naive kl divergence kernel introduced by div by 0. #724

Merged
merged 2 commits into from
Jun 24, 2022

Conversation

mdoijade
Copy link
Contributor

@mdoijade mdoijade commented Jun 24, 2022

-- This address issue #716
-- remove redundant commented code as well.

@mdoijade mdoijade requested a review from a team as a code owner June 24, 2022 14:46
@github-actions github-actions bot added the cpp label Jun 24, 2022
@cjnolet cjnolet added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jun 24, 2022
@@ -450,10 +449,6 @@ class DistanceTest : public ::testing::TestWithParam<DistanceInputs<DataType>> {
}
naiveDistance(
dist_ref.data(), x.data(), y.data(), m, n, k, distanceType, isRowMajor, metric_arg, stream);
// size_t worksize = raft::distance::getWorkspaceSize<distanceType, DataType, DataType,
Copy link
Member

Choose a reason for hiding this comment

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

If this is unneeded, can it just be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is commented code which I've already removed.

Copy link
Member

Choose a reason for hiding this comment

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

Got it! Wow, I totally misread the diff.

@cjnolet
Copy link
Member

cjnolet commented Jun 24, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 5240ab3 into rapidsai:branch-22.08 Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants