Commit eee6926
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 068b686 commit eee6926
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
481 | 480 | | |
482 | 481 | | |
483 | 482 | | |
| |||
0 commit comments