Commit 560aba9
Fix OOB write to S_data in batched linalg_svd (#18625)
Summary:
S has 3 elements per batch (diagonal of 3x3), but was indexed with the same offset as U and Vh (9 elements per batch), causing out-of-bounds writes and corrupted singular values for batch_size > 1.
Reviewed By: DrJessop
Differential Revision: D990023501 parent fcccda3 commit 560aba9
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| 326 | + | |
326 | 327 | | |
327 | 328 | | |
328 | 329 | | |
| |||
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
345 | | - | |
346 | | - | |
347 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
348 | 349 | | |
349 | 350 | | |
350 | 351 | | |
| |||
0 commit comments