-
Notifications
You must be signed in to change notification settings - Fork 15
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
Map blocks unable to infer datatype of object arrays #58
Comments
The dtype will need to be passed into cupy-xarray/cupy_xarray/accessors.py Lines 64 to 73 in a460295
Might need to wrap |
since I just saw this: you might be able to use if isinstance(self.da.data, dask_array_type):
data = self.da.data.map_blocks(cp.asarray)
return self.da.copy(data=data)
return self.da.copy(data=cp.asarray(self.da.data)) |
It seems that |
I'm trying to convert the following xarray dataset to xarray cupy:
However, I'm getting the following error:
It seems map_blocks inference fails for object dtype arrays? Could this dtype be forced by passing a dtype parameter to map_blocks?
The text was updated successfully, but these errors were encountered: