-
Notifications
You must be signed in to change notification settings - Fork 731
Tensor::unfold(dim, size, step) #3751
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
Conversation
|
@wingertge ping? |
|
Added |
|
|
I implemented a copy-mode for |
|
Maybe |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3751 +/- ##
==========================================
- Coverage 64.19% 64.09% -0.11%
==========================================
Files 1094 1095 +1
Lines 128528 129050 +522
==========================================
+ Hits 82512 82718 +206
- Misses 46016 46332 +316 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ffd7a1d to
f7079fc
Compare
If you can, I'd recommend having default implementations (similarly I did in #3767 for trunc and fmod) for the candle backend. Eventually, I think the support for candle might be dropped and currently it's not fully supported anyway. We can come back and improve perf. |
|
@antimora I can't have default implementations; because |
f7079fc to
6799d42
Compare
|
This is the impact on simulations of the pending unfold change. https://github.com/crutcher/clockmill/blob/main/examples/scratch/src/main.rs |
|
Added an optimization on |
laggui
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of minor comments, after which should be good to go!
- switched to pytorch's return shape. - added burn-router - exposed unfold calculation module. - ndarray and candle both need either upstream support or work-arounds. candle has a PR in-flight (from me): huggingface/candle#3091
- Added `unfold` function for `candle`, `ndarray` backends with a copy-based implementation. - Updated function docs and tensor operation traits accordingly. - Incorporated window shape calculation for `unfold`.
… cases. Update imports.
…pe`. - Replaced `calculate_unfold_windows` with `calculate_unfold_shape` across tensor backends. - Updated function documentation to reflect the new shape calculation. - Added unit tests for `calculate_unfold_shape`. - Simplified shape handling in tensor unfold operations.
b59efe0 to
4eab952
Compare
|
also extracted |
|
@crutcher probably failures on linux-no-std-tests will go away if you rebase with main |
|
@antimora I did rebase on main |
ndarrayandcandle