Skip to content

Conversation

@lucylq
Copy link
Contributor

@lucylq lucylq commented Apr 22, 2025

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #10305 by @lucylq
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/lucylq/61/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/lucylq/61/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/lucylq/60/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/lucylq/61/orig
@diff-train-skip-merge

Sebastian-Larsson and others added 9 commits April 22, 2025 10:12
Asserts are converted to proper raises to ensure graph integrity.

Improve error message.


Signed-off-by: Sebastian Larsson <[email protected]>
Co-authored-by: Oscar Andersson <[email protected]>
Differential Revision: D73382201

Pull Request resolved: #10331
Differential Revision: D73268792

Pull Request resolved: #10300
…ss (#10137)

Update ConvertExpandCopyToRepeatPass to eliminate Repeat nodes where all
repetition counts are one, as these are functionally equivalent to a
simple copy. This reduces unnecessary operations in the graph.

This patch affects two unit tests in
backends/arm/test/ops/test_expand.py. The models (test subjects) in
those unit tests are in the affected cases optimized such that the only
computation node (torch.Tensor.expand) they each contain is optimized
away by the modified ConvertExpandCopyToRepeatPass. This will make Vela
complain saying that the model is empty and the TOSA file cannot be
compiled. Set the affected unit tests to xfail since they are expected
to be resolved later in another patch.

Co-authored-by: Martin Lindström <[email protected]>
Populate backends/arm/quantizer/__init__.py and backends/arm/__init__.py

Signed-off-by: Oscar Andersson <[email protected]>
Differential Revision: D72740782

Pull Request resolved: #10344
Differential Revision: D73418899

Pull Request resolved: #10348
… wrapper

Pull Request resolved: #10305

Seeing issue with linear where the fqns for constants disappear.

Registering self.method_name as a submodule of wrapper means that the parameters are registered to the wrapper. thanks @angelayi for the fix!

```
  File "/data/users/lfq/fbsource/buck-out/v2/gen/fbcode/1af94fa701700343/executorch/test/models/__export_delegated_program__/export_delegated_program#link-tree/torch/export/_trace.py", line 1980, in _export_for_training
    export_artifact = export_func(
  File "/data/users/lfq/fbsource/buck-out/v2/gen/fbcode/1af94fa701700343/executorch/test/models/__export_delegated_program__/export_delegated_program#link-tree/torch/export/_trace.py", line 1473, in _strict_export
    _replace_param_buffer_names(param_buffer_table, export_graph_signature)
  File "/data/users/lfq/fbsource/buck-out/v2/gen/fbcode/1af94fa701700343/executorch/test/models/__export_delegated_program__/export_delegated_program#link-tree/torch/export/_trace.py", line 272, in _replace_param_buffer_names
    spec.target = param_buffer_table[spec.target]
KeyError: 'L__self___fn___self___linear.weight'
```
ghstack-source-id: 279346028
@exported-using-ghexport

Differential Revision: [D73279618](https://our.internmc.facebook.com/intern/diff/D73279618/)
@pytorch-bot
Copy link

pytorch-bot bot commented Apr 22, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10358

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 22, 2025
@lucylq lucylq closed this Apr 22, 2025
@lucylq lucylq deleted the gh/lucylq/61/orig branch April 22, 2025 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.