heat icon indicating copy to clipboard operation
heat copied to clipboard

Implement vmap

Open JuanPedroGHM opened this issue 1 year ago • 3 comments

Related Provide a clean way to apply NumPy or torch functions to the local arrays, without having to manually get the local array, transform it to torch/NumPy, apply the function and then create the DNDArray again.

Feature functionality The user should be able to apply a function from torch or NumPy in a single command, as long as the result is independent of the global array and the result shape of the local array does not change.

JuanPedroGHM avatar Feb 26 '24 09:02 JuanPedroGHM

Is this intended to work similar as, e.g., torch.vmap in the sense that you can do something like:

fun = ht.heatmap(torchfun) 
y = fun(x)

with a function torchfun defined on torch.Tensors?

Or do you even want to go further and include torch.vmap somehow if torchfun can also be parallelized on each process?

mrfh92 avatar Feb 27 '24 10:02 mrfh92

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Apr 29 '24 02:04 github-actions[bot]

Branch features/1383-Implement_vmap created!

github-actions[bot] avatar Jun 06 '24 13:06 github-actions[bot]