-
Notifications
You must be signed in to change notification settings - Fork 608
Cleanup doc wording and code snippets in a few locations #8832
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/8832
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
16a26fb
to
2ba8c23
Compare
model = MyModel() # The PyTorch model to export | ||
example_inputs = (torch.randn(1,3,64,64),) # A tuple of inputs | ||
model = models.mobilenetv2.mobilenet_v2(weights=MobileNet_V2_Weights.DEFAULT).eval() | ||
sample_inputs = (torch.randn(1, 3, 224, 224), ) |
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.
where is the actual export call?
exported_graph = torch.export.export(model, sample_inputs)
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.
It's actually inline in the to_edge_transform_and_lower call. I've been doing that for conciseness and have seen users doing this, but maybe it's better to break 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.
Ah didn't see it somehow, maybe it's easy to miss.
yeah, at least for examples, and getting started, breaking out could be useful
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.
See inline comments
2ba8c23
to
3b7c126
Compare
Summary
This PR makes a few minor doc polish changes, such as moving system requirements above installation in getting started, cleaning up some code snippets, using MV2 for the getting started example, and some minor miscellaneous cleanup.
Test plan
Built docs locally to verify the content and formatting of changes.
cc @mergennachin @byjlw