Commit 1fb85a1
Switch to argsort over TopK (#265)
Using argsort over TopK seems to use less memory and run faster.
I found `0.6873465579992626` for argsort and `0.7168450749959447` for
TopK.
This should be expected behavior for a flattened tensor.
Co-authored-by: Azazelle Guice <[email protected]>1 parent 7467108 commit 1fb85a1
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments