Skip to content

Conversation

@nucli-vicky
Copy link
Contributor

Fix 'Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0!' when using torch backend.

@gschramm
Copy link
Owner

gschramm commented Sep 9, 2025

@nucli-vicky thanks for spotting and fixing this. Did you also try to rerun the examples using cupy after the changes? I think they should work, but better to test.

@gschramm gschramm merged commit 7f59994 into gschramm:master Sep 9, 2025
6 checks passed
@nucli-vicky
Copy link
Contributor Author

I reran one example with cupy and numpy (07_run_mlem_open_geometry.py) and it worked.

@nucli-vicky nucli-vicky deleted the patch-1 branch September 9, 2025 09:29
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