-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Improve custom ops tutorials #3020
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3020
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 0310be6 with merge base fc016bd (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
Thanks - jus a couple of minor nits
@@ -174,6 +174,8 @@ To add ``torch.compile`` support for an operator, we must add a FakeTensor kerne | |||
known as a "meta kernel" or "abstract impl"). FakeTensors are Tensors that have | |||
metadata (such as shape, dtype, device) but no data: the FakeTensor kernel for an | |||
operator specifies how to compute the metadata of output tensors given the metadata of input tensors. | |||
The FakeTensor kernel should return return dummy Tensors of your choice with | |||
the correct Tensor metadata (shape/strides/``dtype``/device). |
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.
Should this be in double ticks?
the correct Tensor metadata (shape/strides/``dtype``/device). | |
the correct Tensor metadata (``shape/strides/<dtype>/device``). |
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.
I just wanted to put dtype in double ticks because it's not an english word
0ec6dbd
to
5ea69b0
Compare
Co-authored-by: Svetlana Karslioglu <[email protected]>
Co-authored-by: Svetlana Karslioglu <[email protected]>
Fixes pytorch/pytorch#133318
Description
We update the custom ops tutorials based on user feedback.
Checklist