-
Notifications
You must be signed in to change notification settings - Fork 594
Improve setup instructions #24
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
5272718
2f3090a
648a3ff
799a583
f4e1682
3e0fde0
354aff5
12d3b05
e2bd3c4
800efda
0160e51
5d7c8c1
46e8b07
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
buck-out/ | ||
executorch.egg-info | ||
__pycache__/ | ||
build/lib/ | ||
exir/serialize/scalar_type.fbs | ||
exir/serialize/schema.fbs |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
flatten_output, | ||
Value, | ||
) | ||
from functorch.experimental import functionalize | ||
from torch.func import functionalize | ||
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. 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 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
# flake8: noqa: F401 | ||
|
||
import warnings | ||
import logging | ||
|
||
# Create a logger | ||
logger = logging.getLogger(__name__) | ||
logger.setLevel(logging.WARNING) | ||
|
||
|
||
try: | ||
""" | ||
|
@@ -22,9 +27,8 @@ | |
TreeSpec as TreeSpec, | ||
) | ||
except: | ||
warnings.warn( | ||
"Unable to import executorch.extension.pytree, using native torch pytree instead." | ||
) | ||
logger.info("Unable to import executorch.extension.pytree, using native torch pytree instead.") | ||
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 think oss users dont need to see this warning |
||
|
||
|
||
from torch.utils._pytree import ( | ||
_broadcast_to_and_flatten, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,13 @@ | |
from setuptools.command.egg_info import egg_info | ||
from setuptools.command.install import install | ||
|
||
# Dependencies | ||
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. 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 = [ | ||
|
@@ -53,4 +60,5 @@ def run(self): | |
"develop": CustomDevelopCommand, | ||
"egg_info": CustomEggInfoCommand, | ||
}, | ||
install_requires=required_packages, | ||
) |
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.
strangely enough
pip install -e .
was not findingexir
for me :/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.
Ok I think this is because there's something weird going on with the custom install instructions, will get back to this later