-
Notifications
You must be signed in to change notification settings - Fork 604
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
Conversation
🔗 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 FailuresAs of commit b33c194 with merge base 8e2737c ( 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. |
This pull request was exported from Phabricator. Differential Revision: D75800153 |
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
82355ef
to
31e5105
Compare
This pull request was exported from Phabricator. Differential Revision: D75800153 |
@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
1c3c234
to
b33c194
Compare
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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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 useexecutorch.codegen.gen
instead.Differential Revision: D75800153