-
Notifications
You must be signed in to change notification settings - Fork 608
Refactor preprocess to use EagerModelBase #6530
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6530
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit e70cb5d with merge base 85d3ff6 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
# Export. | ||
# ep = torch.export.export( | ||
# model.get_eager_model(), | ||
# model.get_example_inputs(), | ||
# dynamic_shapes=model.get_dynamic_shapes(), | ||
# strict=False, | ||
# ) | ||
# | ||
# # AOTInductor | ||
# torch._inductor.aot_compile( | ||
# ep.module(), | ||
# model.get_example_inputs(), | ||
# options={"aot_inductor.output_path": "preprocess_aoti.so"}, | ||
# ) |
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.
Why commented out
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.
Aoti still requires pytorch/pytorch#137063, Richard said will try to land eow.
refactor preprocess to use EagerModelBase ghstack-source-id: d2ac7e1 Pull Request resolved: #6530 Co-authored-by: lucylq <[email protected]>
Stack from ghstack (oldest at bottom):