Conversation
|
Stack from ghstack (oldest at bottom): |
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/22862
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 6991dda with merge base 1cd22ed ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
Cortex-M layout conversion leaves original constant placeholders that FX dead-code elimination preserves. Add a separate RemoveUnusedConstantsPass to retire unused input specs and storage in linear time. Include it after constant lifting in both default pass lists, after padding fusion and scratch sizing. Lift constants exactly once through the pass list before pruning, avoiding generated buffer-name collisions. Remove the unconditional final lifting call: explicit custom lists define the complete pipeline and can select no cleanup, lifting only, or lifting followed by pruning. The small lifting adapter makes the existing utility usable by the standard ExportedProgram pass runner. Preserve user inputs, mutation and gradient targets, preserved module-call signatures, and state shared with other entry points. The existing EXIR pass and other backend defaults remain unchanged. Eleven focused Python tests passed, including buffer-name collision and all three custom-list behaviors. Authored with AI assistance from Codex. ghstack-source-id: d1c398d ghstack-comment-id: 5689274130 Pull-Request: #22862
[ghstack-poisoned]
[ghstack-poisoned]
Cortex-M layout conversion leaves original constant placeholders that FX dead-code elimination preserves. Add a separate RemoveUnusedConstantsPass to retire unused input specs and storage in linear time. Include it after constant lifting in both default pass lists, after padding fusion and scratch sizing. Lift constants exactly once through the pass list before pruning, avoiding generated buffer-name collisions. Remove the unconditional final lifting call: explicit custom lists define the complete pipeline and can select no cleanup, lifting only, or lifting followed by pruning. The small lifting adapter makes the existing utility usable by the standard ExportedProgram pass runner. Preserve user inputs, mutation and gradient targets, preserved module-call signatures, and state shared with other entry points. The existing EXIR pass and other backend defaults remain unchanged. Eleven focused Python tests passed, including buffer-name collision and all three custom-list behaviors. Authored with AI assistance from Codex. ghstack-source-id: e825659 ghstack-comment-id: 5689274130 Pull-Request: #22862
This PR needs a
|
Detach the graph, signature, and state dictionary before the Cortex-M lifting adapter invokes the in-place lifting utility. This preserves the original program and prevents a generated buffer name from overwriting another entry point's shared state. Regression coverage exercises lift-only and lift-then-prune through both the Cortex-M manager and edge.transform(). The 19 focused tests and four MLPerf Tiny dialect tests pass. Authored with AI assistance from Codex. [ghstack-poisoned]
Cortex-M layout conversion leaves original constant placeholders that FX dead-code elimination preserves. Add a separate RemoveUnusedConstantsPass to retire unused input specs and storage in linear time. Include it after constant lifting in both default pass lists, after padding fusion and scratch sizing. Lift constants exactly once through the pass list before pruning, avoiding generated buffer-name collisions. Remove the unconditional final lifting call: explicit custom lists define the complete pipeline and can select no cleanup, lifting only, or lifting followed by pruning. The small lifting adapter makes the existing utility usable by the standard ExportedProgram pass runner. Preserve user inputs, mutation and gradient targets, preserved module-call signatures, and state shared with other entry points. The existing EXIR pass and other backend defaults remain unchanged. Eleven focused Python tests passed, including buffer-name collision and all three custom-list behaviors. Authored with AI assistance from Codex. ghstack-source-id: 3f25b1c ghstack-comment-id: 5689274130 Pull-Request: #22862
[ghstack-poisoned]
Cortex-M layout conversion leaves original constant placeholders that FX dead-code elimination preserves. Add a separate RemoveUnusedConstantsPass to retire unused input specs and storage in linear time. Include it after constant lifting in both default pass lists, after padding fusion and scratch sizing. Lift constants exactly once through the pass list before pruning, avoiding generated buffer-name collisions. Remove the unconditional final lifting call: explicit custom lists define the complete pipeline and can select no cleanup, lifting only, or lifting followed by pruning. The small lifting adapter makes the existing utility usable by the standard ExportedProgram pass runner. Preserve user inputs, mutation and gradient targets, preserved module-call signatures, and state shared with other entry points. The existing EXIR pass and other backend defaults remain unchanged. Eleven focused Python tests passed, including buffer-name collision and all three custom-list behaviors. Authored with AI assistance from Codex. ghstack-source-id: f68d6ae ghstack-comment-id: 5689274130 Pull-Request: #22862
|
Bump on this one @JakeStevens & @AdrianLundell |
Cortex-M layout conversion leaves original constant placeholders that FX dead-code elimination preserves. Add a separate RemoveUnusedConstantsPass to retire unused input specs and storage in linear time. Include it after constant lifting in both default pass lists, after padding fusion and scratch sizing.
Lift constants exactly once through the pass list before pruning, avoiding generated buffer-name collisions. Remove the unconditional final lifting call: explicit custom lists define the complete pipeline and can select no cleanup, lifting only, or lifting followed by pruning. The small lifting adapter makes the existing utility usable by the standard ExportedProgram pass runner.
Preserve user inputs, mutation and gradient targets, preserved module-call signatures, and state shared with other entry points. The existing EXIR pass and other backend defaults remain unchanged. Eleven focused Python tests passed, including buffer-name collision and all three custom-list behaviors.
Authored with AI assistance from Codex.