Commit 7b4c2a5
Use less memory in the OuterProductMean
* Uses significantly less RAM (256 -> 72 MB for 1024-token input).
Inspired by #674, thank you very much for the suggestion @mooreneural.
PiperOrigin-RevId: 941052434
Change-Id: I0f1cfa6a16f7f2da4371a0c0c53642ef26b1328c1 parent 37bff5f commit 7b4c2a5
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
| 405 | + | |
| 406 | + | |
409 | 407 | | |
410 | 408 | | |
411 | 409 | | |
| |||
0 commit comments