Repository navigation
Commit fb3fff7
authored
Qualcomm: skip higher-order ops in LiftConstantScalarOperands (#22252)
The pass inspects node.target._schema to lift scalar operands, but
higher-order ops (e.g. wrap_with_set_grad_enabled from a torch.no_grad
block) have no OpOverload schema, so the pass crashed with
AttributeError on a valid exported program (surfaced exporting Mamba2 /
Mixtral MoE via the QNN backend). Skip non-OpOverload targets.
cc @cbilgin1 parent 273cb33 commit fb3fff7
3 files changed
Lines changed: 42 additions & 0 deletions
File tree
- backends/qualcomm
- _passes
- tests
- rework/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4457 | 4457 | | |
4458 | 4458 | | |
4459 | 4459 | | |
| 4460 | + | |
| 4461 | + | |
| 4462 | + | |
| 4463 | + | |
| 4464 | + | |
| 4465 | + | |
4460 | 4466 | | |
4461 | 4467 | | |
4462 | 4468 | | |
| |||
4526 | 4532 | | |
4527 | 4533 | | |
4528 | 4534 | | |
| 4535 | + | |
| 4536 | + | |
| 4537 | + | |
| 4538 | + | |
| 4539 | + | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
4529 | 4543 | | |
4530 | 4544 | | |
4531 | 4545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
120 | 143 | | |
121 | 144 | | |
122 | 145 | | |
| |||
0 commit comments