Commit 07b9feb
authored
Summary:
Forward fix for D108707519 (Qualcomm AI Engine Direct - LPAI Support
Partition, #19835).
The new LpaiPartitionFallbackSupport pass crashes when run without QNN
compiler
specs:
lpai_partition_fallback_support.py:153 get_unsupported_nodes
op_validator = QnnOperatorSupport(compiler_specs=self.compiler_specs,
...)
TypeError: 'NoneType' object is not iterable
The edge-transform pass framework injects compiler_specs into passes but
defaults it to None
(QnnPassManager.get_to_edge_transform_passes(compiler_specs=
None)). Lowering paths that run the edge transform without
partitioner-supplied
specs — e.g. the modai LPAI offline-compile path
(modai/test:test_qualcomm_lpai_recipes::test_export_and_lower_8a8w_writes_pte)
—
reach this pass with compiler_specs=None, and QnnOperatorSupport then
iterates
the None specs and aborts the whole to_edge_transform_and_lower.
The pass fundamentally needs compiler specs to decide which nodes are
LPAI-
unsupported, so with no specs there is nothing to validate against. Skip
the
pass (return PassResult(.., modified=False)) in that case, restoring the
behavior from before this pass existed for spec-less paths. On-device
paths that
do supply compiler_specs are unaffected.
Differential Revision: D108853837
1 parent 8bb71cf commit 07b9feb
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
| |||
0 commit comments