Commit 84f35d6
fix: resolve emitter getitem, alloc spec, and view_copy spec errors
- _emitter.py: handle single _AbstractValue from delegate in getitem
(fixes '_AbstractValue' object is not subscriptable)
- memory_planning.py: skip memory.alloc nodes in ensure_graph_node_specs
(fixes 'Out-var allocation node already has a spec assigned')
- replace_view_copy_with_view_pass.py: derive base_spec from meta["val"]
when meta["spec"] is missing (fixes KeyError: 'spec' for xnnpack tests)
Fixes test_mobilenet_v3, test_resnet18, test_mobilenet_v3_xnnpack,
test_resnet18_xnnpack, test_to_out_variant_multiple_out,
test_emit_lowered_backend_module, test_emit_nested_lowered_backend_module.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent d4fa140 commit 84f35d6
3 files changed
Lines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1747 | 1747 | | |
1748 | 1748 | | |
1749 | 1749 | | |
1750 | | - | |
| 1750 | + | |
1751 | 1751 | | |
1752 | | - | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
1753 | 1756 | | |
1754 | 1757 | | |
1755 | 1758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
| 762 | + | |
762 | 763 | | |
763 | 764 | | |
764 | 765 | | |
765 | 766 | | |
766 | 767 | | |
767 | 768 | | |
| 769 | + | |
| 770 | + | |
768 | 771 | | |
769 | 772 | | |
770 | 773 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
286 | 297 | | |
287 | 298 | | |
288 | 299 | | |
289 | 300 | | |
290 | | - | |
| 301 | + | |
291 | 302 | | |
292 | 303 | | |
293 | 304 | | |
| |||
0 commit comments