Skip to content

Remove remaining reference to torchgen.gen_executorch #11290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025

Conversation

larryliu0820
Copy link
Contributor

Summary:
Fixes #11232
This is part of an effort to remove ExecuTorch related codegen code in pytorch/pytorch's torchgen module. We need to remove torchgen.gen_executorch in ExecuTorch and use executorch.codegen.gen instead.

Differential Revision: D75800153

Copy link

pytorch-bot bot commented Jun 2, 2025

🔗 Helpful Links

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

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

❌ 1 Cancelled Job, 2 Unrelated Failures

As of commit b33c194 with merge base 8e2737c (image):

CANCELLED JOB - The following job was cancelled. Please retry:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 Jun 2, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75800153

@larryliu0820 larryliu0820 added the release notes: none Do not include this in the release notes label Jun 2, 2025
facebook-github-bot pushed a commit that referenced this pull request Jun 2, 2025
Summary:

Fixes #11232
This is part of an effort to remove ExecuTorch related codegen code in pytorch/pytorch's torchgen module. We need to remove `torchgen.gen_executorch` in ExecuTorch and use `executorch.codegen.gen` instead.

Differential Revision: D75800153
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75800153

@facebook-github-bot
Copy link
Contributor

@larryliu0820 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Summary:
Fixes #11232
This is part of an effort to remove ExecuTorch related codegen code in pytorch/pytorch's torchgen module. We need to remove `torchgen.gen_executorch` in ExecuTorch and use `executorch.codegen.gen` instead.


Test Plan:
Imported from GitHub, without a `Test Plan:` line.

Rollback Plan:

Differential Revision: D75800153

Pulled By: larryliu0820
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75800153

from executorch.codegen.model import ETKernelIndex, ETKernelKey, ETParsedYaml
from executorch.codegen.parse import ET_FIELDS, parse_et_yaml, parse_et_yaml_struct
except ImportError:
# If we build from source, executorch.codegen is not available.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noob q: why is this the case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To build ET from source we need selective build and generated bindings. So these scripts will be called before they are being installed into site-packages.

@facebook-github-bot facebook-github-bot merged commit 879eee0 into main Jun 3, 2025
188 of 193 checks passed
@facebook-github-bot facebook-github-bot deleted the export-D75800153 branch June 3, 2025 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported release notes: none Do not include this in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move codegen from using torchgen to executorch.codegen
4 participants