Commit 28f533d
Add ORT_ENFORCE for past KV non-null in kv_empty path
KV-shared layers always reuse another layer's cache, so past_key and
past_value must be present. Make this invariant explicit rather than
silently falling through to empty internal tensors.
Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>1 parent 83182ea commit 28f533d
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
479 | 478 | | |
480 | 479 | | |
481 | 480 | | |
| |||
0 commit comments