Repository navigation
Bind lifted constants in QNN selectively lowered submodules (#25424) - #25424
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25424
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 1 PendingAs of commit 1fdeb91 with merge base 8c3f75d ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@psiddh has exported this pull request. If you are a Meta employee, you can view the originating Diff in D133767623. |
This PR needs a
|
…25424) Summary: Selective QNN lowering can introduce lifted constants after ConstantFolding, but its parent graph still supplies the original user arguments. Installing the raw exported graph then breaks strict re-export with `missing required positional argument: embedding_2`. Install the bound `ExportedProgram.module()` and restore plain FX code generation so constants remain bound and fused submodules keep their flat output tuples. Existing `getitem(0)` handling is unchanged. Add a regression covering CPU embeddings, a folded constant, strict re-export with the original arguments, and both single- and multiple-output partitions. ConstantFolding and its existing safeguards remain enabled. Differential Revision: D133767623
239918c to
1fdeb91
Compare
winskuo-quic
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the fix.
Summary:
Selective QNN lowering can introduce lifted constants after ConstantFolding, but its parent graph still supplies the original user arguments. Installing the raw exported graph then breaks strict re-export with
missing required positional argument: embedding_2.Install the bound
ExportedProgram.module()and restore plain FX code generation so constants remain bound and fused submodules keep their flat output tuples. Existinggetitem(0)handling is unchanged. Add a regression covering CPU embeddings, a folded constant, strict re-export with the original arguments, and both single- and multiple-output partitions. ConstantFolding and its existing safeguards remain enabled.Differential Revision: D133767623