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 dtype/device mismatch in _get_indices() #90

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Turakar
Copy link
Contributor

@Turakar Turakar commented Jan 8, 2024

Previously, this method failed if row_index and col_index have different dtype/device. Now, we first unify these and do the comparisons afterwards.

Differing dtype/device combinations can be created for example by _convert_indices_to_tensors() in __getitem__() (reference).

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.

None yet

1 participant