We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When converting a pytorch array to a numpy with array_backend.to_numpy(v), to breaks if the array is a on a gpu.
array_backend.to_numpy(v)
import torch from earthkit.data.utils import array as array_api array = torch.ones((1,), device = 'cuda') an = array_api.get_backend(array) an.to_numpy(array)
0.12.0
ATOS
No response
ECMWF
The text was updated successfully, but these errors were encountered:
HCookie
Successfully merging a pull request may close this issue.
What happened?
When converting a pytorch array to a numpy with
array_backend.to_numpy(v)
, to breaks if the array is a on a gpu.What are the steps to reproduce the bug?
Version
0.12.0
Platform (OS and architecture)
ATOS
Relevant log output
No response
Accompanying data
No response
Organisation
ECMWF
The text was updated successfully, but these errors were encountered: