Skip to content

Fix up custom op tutorials #2873

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

Merged
merged 6 commits into from
May 20, 2024
Merged

Fix up custom op tutorials #2873

merged 6 commits into from
May 20, 2024

Conversation

tugsbayasgalan
Copy link
Contributor

Fixes #ISSUE_NUMBER

Description

Checklist

  • The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER")
  • Only one issue is addressed in this pull request
  • Labels from the issue that this PR is fixing are added to this pull request
  • No unnecessary issues are included into this pull request.

Copy link

pytorch-bot bot commented May 16, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/2873

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit f1b1559 with merge base 13e7981 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

# - Sometimes, the custom op you are exporting has data-dependent output, meaning
# we can't determine the shape of the output at compile time. In this case, you can do
# following:
@torch.library.register_fake("mylib::op_that_has_data_dependent")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any example is using this fake op op_that_has_data_dependent? Might worth adding one if not.

@svekars svekars merged commit f66b5b2 into pytorch:main May 20, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants