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

Merged
merged 2 commits into from
Aug 13, 2024

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).

@gpleiss gpleiss enabled auto-merge (squash) August 13, 2024 17:16
@gpleiss gpleiss merged commit eec70f9 into cornellius-gp:main Aug 13, 2024
6 checks passed
@Turakar Turakar deleted the fix_diag-linop-device branch August 14, 2024 16:26
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