-
Notifications
You must be signed in to change notification settings - Fork 714
Remove the ability to choose pybinding when installing ExecuTorch #11233
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
Changes from all commits
6e0f20f
470f167
0bc2792
6843338
ea9a891
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,25 +64,15 @@ Or alternatively, [install conda on your machine](https://conda.io/projects/cond | |
| ./install_executorch.sh | ||
| ``` | ||
|
|
||
| Use the [`--pybind` flag](https://github.com/pytorch/executorch/blob/main/install_executorch.sh#L26-L29) to install with pybindings and dependencies for other backends. | ||
| ```bash | ||
| ./install_executorch.sh --pybind <coreml | mps | xnnpack> | ||
|
|
||
| # Example: pybindings with CoreML *only* | ||
| ./install_executorch.sh --pybind coreml | ||
|
|
||
| # Example: pybinds with CoreML *and* XNNPACK | ||
| ./install_executorch.sh --pybind coreml xnnpack | ||
| ``` | ||
| Not all backends are built into the pip wheel by default. You can link these missing/experimental backends by turning on the corresponding cmake flag. For example, to include the MPS backend: | ||
|
|
||
| By default, `./install_executorch.sh` command installs pybindings for XNNPACK. To disable any pybindings altogether: | ||
| ```bash | ||
| ./install_executorch.sh --pybind off | ||
| ``` | ||
| ```bash | ||
| CMAKE_ARGS="-DEXECUTORCH_BUILD_MPS=ON" ./install_executorch.sh | ||
| ``` | ||
|
Comment on lines
+69
to
+71
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm I thought we don't provide the option? If we are providing it, why is this better than
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wanted to leave this option open mainly for development on new backends. After the MPS changes, I think it would make sense to remove this example from public docs |
||
|
|
||
| For development mode, run the command with `--editable`, which allows us to modify Python source code and see changes reflected immediately. | ||
| ```bash | ||
| ./install_executorch.sh --editable [--pybind xnnpack] | ||
| ./install_executorch.sh --editable | ||
|
|
||
| # Or you can directly do the following if dependencies are already installed | ||
| # either via a previous invocation of `./install_executorch.sh` or by explicitly installing requirements via `./install_requirements.sh` first. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.