candle
candle copied to clipboard
[WIP] Implement Tensor::unfold(dim, size, step): 1-dim unfolded window views.
This manipulates layout to unfold a window along a dimension.
See: https://docs.pytorch.org/docs/2.8/generated/torch.Tensor.unfold.html
TODO: I need help with backprop.rs::Tensor::backward()