-
Notifications
You must be signed in to change notification settings - Fork 481
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
[SYSTEMDS-3815] Fused table sequence #2181
Conversation
This commit contains a new fused operator for: table(seq(1, nrow(A)), A, w) That removes the need to generate a vector of incrementing integers in the size of A.
Is that an extension (for weighted variants?) of the existing rexpand instruction? |
assuming I understand the current implementation. |
just to answer the question, yes it is an extension of rexpand. |
What irritates me a bit is that the rexpand kernels are implemented in |
okay will do, I just had a tendency lately to make Lib files since it made it 'cleaner' in my mind for containing parallel and non parallel calls. |
Performance improvements: Before:
Total elapsed time: 16.876 sec.
1 ctableexpand 12.974 100
2 seq 2.885 100]
After Uncompressed:
Total elapsed time: 10.496 sec.
1 ctableexpand 9.236 100
After Compressed:
Total elapsed time: 4.973 sec.
1 ctableexpand 4.089 100 The change unfortunately makes the current fed_tableexpand instruction invalid and therefore have to be reimplemented. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2181 +/- ##
============================================
+ Coverage 71.84% 71.89% +0.04%
- Complexity 44591 44702 +111
============================================
Files 1447 1449 +2
Lines 168934 169175 +241
Branches 32931 32979 +48
============================================
+ Hits 121374 121622 +248
+ Misses 38232 38228 -4
+ Partials 9328 9325 -3 ☔ View full report in Codecov by Sentry. |
This commit contains a new fused operator for:
table(seq(1, nrow(A)), A, w)
This operation is useful for efficient word embedding of a token matrix A.