heat
heat copied to clipboard
Implement unfold-operation similar to `torch.Tensor.unfold`
Feature functionality
The idea is to introduce a function ht.unfold
in the manipulations-module that has the same functionality as PyTorchs unfold.
In fact, this only requires additional efforts for the case split=dimension
(dimension
is the axis along which unfold takes place); otherwise you can directly apply the torch-function to the local arrays.
Hint: some auxiliary stuff required in the "difficult" case may already be implemented under the name "halo
".
Additional context With the help of such an operation it will be possible to generate sliding patches of an data set, e.g., to generate from an image (2/3d-array) the 4/5d-array of all size x size sub-images etc.
This issue is stale because it has been open for 60 days with no activity.
This issue was closed because it has been inactive for 60 days since being marked as stale.
@github-actions bot: it is planned, because someone is actively working on it!