Skip to content
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ Compared to the legacy Lite Interpreter, there are some major benefits:
## Quick Links

- [Basics: Terminology](/docs/website/docs/basics/terminology.md)
- [Exporting to Executorch](/docs/website/docs/tutorials/exported_to_executorch.md)
- [Exporting to Executorch](/docs/website/docs/tutorials/exporting_to_executorch.md)
- [EXIR Spec](/docs/website/docs/ir_spec/00_exir.md)
- [Delegate to a backend](/docs/website/docs/tutorials/backends.md)
- [Delegate to a backend](/docs/website/docs/tutorials/backend_delegate.md)
- [Wiki (internal-only)](https://www.internalfb.com/intern/wiki/PyTorch/Using_PyTorch/Executorch/)
- [Static docs website (internal-only)](https://www.internalfb.com/intern/staticdocs/executorch/)
- [Testing (internal-only)](https://www.internalfb.com/intern/staticdocs/executorch/docs/fb/poc/)
Expand Down
2 changes: 1 addition & 1 deletion docs/website/docs/tutorials/setting_up_executorch.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ git clone git@github.com:pytorch/executorch.git
# [Runtime requirement] Run the following to get all submodules, only need for runtime setup
git submodule update --init --recursive

pip install executorch
pip install .
Copy link
Member Author

Choose a reason for hiding this comment

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

strangely enough pip install -e . was not finding exir for me :/

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok I think this is because there's something weird going on with the custom install instructions, will get back to this later


# cd into a directory that doesn't contain a `./executorch/exir` directory, since
# otherwise python will try using it for `import executorch.exir...` instead of using the
Expand Down
2 changes: 1 addition & 1 deletion exir/capture/_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
flatten_output,
Value,
)
from functorch.experimental import functionalize
from torch.func import functionalize
Copy link
Member Author

Choose a reason for hiding this comment

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

this was spamming warnings on the default hello world example

from torch import _guards
from torch._dispatch.python import enable_python_dispatcher
from torch._dynamo.eval_frame import Constraint
Expand Down
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
from setuptools.command.egg_info import egg_info
from setuptools.command.install import install

# Dependencies
Copy link
Member Author

Choose a reason for hiding this comment

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

docs/website/docs/tutorials/setting_up_executorch.md mentions most of these dependencies so might as well install them

required_packages = [
"numpy",
"zstd",
"flatbuffers",
# "torch_nightly" # This is not available on PyPI. Please install manually.
]

def custom_command():
src_dst_list = [
Expand Down Expand Up @@ -53,4 +60,5 @@ def run(self):
"develop": CustomDevelopCommand,
"egg_info": CustomEggInfoCommand,
},
install_requires=required_packages,
)