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

test-backend-ops : initialize ggml_argsort test with unique values #634

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

slaren
Copy link
Collaborator

@slaren slaren commented Dec 5, 2023

In rare (but still surprisingly common) cases, the randomly initialized tensor could contain rows with repeated values, which would result in multiple valid sorts, and that was causing the test to fail sometimes because the backend sort would not be exactly the same as the CPU sort. I guess there aren't that many 32-bit floats.

Copy link
Owner

@ggerganov ggerganov left a comment

Choose a reason for hiding this comment

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

Huh, surprising

@slaren slaren merged commit 3f66942 into master Dec 5, 2023
10 checks passed
@slaren slaren deleted the argsort-test-fix branch December 5, 2023 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants