Commit c2393f4
authored
Fix: init_hidden always returns None (Mamba manages state internally)
The fallback init_hidden was returning a zero tensor instead of None,
causing test_hidden_state_api to fail. The fallback's _selective_scan
already handles None by initializing zeros internally, so init_hidden
should always return None for consistent API behavior.1 parent e4a7883 commit c2393f4
1 file changed
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
342 | | - | |
| 341 | + | |
343 | 342 | | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | 343 | | |
350 | 344 | | |
351 | 345 | | |
| |||
0 commit comments