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: fix dot distance for cuda #2914

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

westonpace
Copy link
Contributor

The first problem is that we were filling the ids array with NAN if the distance was NAN but that leads to the ids array becoming float which torch doesn't like.

The second is that we were reshaping after filling instead of filling and then reshaping. The old approach led to broadcasting the ids matrix from [N;1] to [N;N].

@github-actions github-actions bot added bug Something isn't working python labels Sep 19, 2024
@westonpace westonpace merged commit 282548b into lancedb:main Sep 20, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants