Repository navigation
Commit 2d1fed0
Fix integration test: use cache API to pre-fill states instead of direct assignment
Direct assignment of cache.layers[0].conv_states bypassed lazy_initialization,
leaving 'dtype' unset on LinearAttentionLayer. When the forward called
update_recurrent_state, it triggered lazy_initialization which accessed
self.dtype -> AttributeError.
Use cache.update_conv_state/update_recurrent_state API instead, which
properly initializes dtype/device/initialized flags and sets
has_previous_state=True automatically.
Agent-Logs-Url: https://github.com/onnxruntime/mobius/sessions/b064a982-b980-41f9-b630-622c7a7b65c0
Co-authored-by: justinchuby <[email protected]>1 parent f5de896 commit 2d1fed0
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3929 | 3929 | | |
3930 | 3930 | | |
3931 | 3931 | | |
| 3932 | + | |
| 3933 | + | |
| 3934 | + | |
3932 | 3935 | | |
3933 | | - | |
3934 | | - | |
3935 | | - | |
3936 | | - | |
3937 | | - | |
3938 | | - | |
3939 | | - | |
3940 | | - | |
| 3936 | + | |
| 3937 | + | |
| 3938 | + | |
| 3939 | + | |
| 3940 | + | |
3941 | 3941 | | |
3942 | 3942 | | |
3943 | 3943 | | |
| |||
0 commit comments