Reducing along a chunked dimension with apply_ufunc and dask="parallelized" #9027
Replies: 3 comments 2 replies
-
Can you not just leave that dimension out of |
Beta Was this translation helpful? Give feedback.
-
The implementation of You'll have to handle the chunkiness manually and use |
Beta Was this translation helpful? Give feedback.
-
What is this function you're applying |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a function that processes chunks of data on the GPU using cupy by calling a function
fun
usingapply_ufunc
.The input arrays to the function are chunked into dask arrays because my GPU has very limited memory resources.
The function
fun
could efficiently perform a reduction across one of the chunked dimensions, essentially reducing the size of thisdim_0
fromN_chunk
to1
(or zero by dropping it entirely).Usually,
apply_ufunc
requires dimensions that change size to be core dimensions, which also clashes with the chunking along this dimension. Is there a way to tellapply_ufunc
that one of the chunked dimensions will not be present in the output?Beta Was this translation helpful? Give feedback.
All reactions