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

[HOTFIX] Fix fusedL2NN bug that can happen when the same point appears in both x and y #1040

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

Nyrio
Copy link
Contributor

@Nyrio Nyrio commented Nov 22, 2022

Solves #1036

Even when computing a sum of squares, the distance from a point to itself can apparently be -0.0 in which case the square root is nan and comparisons are broken.

@Nyrio Nyrio requested a review from a team as a code owner November 22, 2022 18:18
@github-actions github-actions bot added the cpp label Nov 22, 2022
@Nyrio
Copy link
Contributor Author

Nyrio commented Nov 22, 2022

cc @benfred @cjnolet

@Nyrio Nyrio added bug Something isn't working 3 - Ready for Review non-breaking Non-breaking change labels Nov 22, 2022
Copy link
Member

@benfred benfred left a comment

Choose a reason for hiding this comment

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

lgtm - Thanks for the fixing this so quickly @Nyrio !

@benfred benfred linked an issue Nov 22, 2022 that may be closed by this pull request
@benfred
Copy link
Member

benfred commented Nov 23, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit c1b077e into rapidsai:branch-22.12 Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review bug Something isn't working cpp non-breaking Non-breaking change
Projects
Development

Successfully merging this pull request may close these issues.

[BUG] fused_l2_nn_argmin produces unexpected results
3 participants