Commit 6d07a23
authored
Optimize inner product, update boilerplate, remove bad benchmarks (#7428)
## Summary
Tracking issue: #7297
Optimizes inner product with manual partial sum decomposition (because
the compiler can't optimize this because float addition is not
associative).
Also removes the old benchmarks as they no longer really time the
correct thing anymore. The real benchmarks will be finished here:
#7399. This change also adds
the `vortex-tensor/src/vector_search.rs` file to support that soon.
## Testing
N/A
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>1 parent 97b18fb commit 6d07a23
8 files changed
Lines changed: 362 additions & 381 deletions
File tree
- vortex-tensor
- benches
- similarity_search_common
- src
- scalar_fns
- vortex/benches
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
553 | 561 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
0 commit comments