-
Notifications
You must be signed in to change notification settings - Fork 168
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
Add example code for printing the operator and shapes in a model #902
Conversation
Summary: This will be useful for people to do understand the ops/shapes for a model that they are interested in optimizing, also helpful for microbenchmarks with target ops/shapes Test Plan: python tutorials/developer_api_guide/print_op_and_shapes.py Reviewers: Subscribers: Tasks: Tags:
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/902
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit f97da6e with merge base bd264f9 (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Can you show us what this prints on some model? |
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.
lgtm!
added in summary, this util is used in the torchao dev guide as a util for developers |
Summary: This will be useful for people to do understand the ops/shapes for a model that they are interested in optimizing, also helpful for microbenchmarks with target ops/shapes Test Plan: python tutorials/developer_api_guide/print_op_and_shapes.py Reviewers: Subscribers: Tasks: Tags:
Summary: This will be useful for people to do understand the ops/shapes for a model that they are interested in optimizing, also helpful for microbenchmarks with target ops/shapes Test Plan: python tutorials/developer_api_guide/print_op_and_shapes.py Reviewers: Subscribers: Tasks: Tags:
Summary:
This will be useful for people to do understand the ops/shapes for a model that they are interested in optimizing, also helpful for microbenchmarks with target ops/shapes. This is used in #391 (search for
Microbenchmarks
)Example output:
Test Plan:
python tutorials/developer_api_guide/print_op_and_shapes.py
Reviewers:
Subscribers:
Tasks:
Tags: