Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix subclass access custom op bug#149698

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@tugsbayasgalan
Copy link
Contributor

Summary: When we call torch.inference_mode, we seem to skip Autograd key causing the custom op export uses to be not decomposed properly before subclass dispatching starts. We fix this by force desugaring this op at Python key

Test Plan: test

Differential Revision: D71599541

@pytorch-bot
Copy link

pytorch-botbot commentedMar 21, 2025
edited
Loading

🔗 Helpful Links

🧪 See artifacts and rendered test results athud.pytorch.org/pr/149698

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit18e895c with merge base5d4b5ee (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

@facebook-github-bot
Copy link
Contributor

This pull request wasexported from Phabricator. Differential Revision:D71599541

Copy link
Contributor

Choose a reason for hiding this comment

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

we don't have much precedent for direct registrations to the Python key. But I guess this seems... ok. The argument is that this isnever an op we want anyone to override, and we effectively want this to be as-if if were a python function

@pytorch-botpytorch-botbot added the ciflow/trunkTrigger trunk jobs on your pull request labelMar 21, 2025
Summary:When we call torch.inference_mode, we seem to skip Autograd key causing the custom op export uses to be not decomposed properly before subclass dispatching starts. We fix this by force desugaring this op at Python keyTest Plan: testReviewed By: bdhirshDifferential Revision: D71599541
@facebook-github-bot
Copy link
Contributor

This pull request wasexported from Phabricator. Differential Revision:D71599541

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

pytorch-bot[bot] reacted with thumbs up emoji

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in thewiki.

Questions? Feedback? Please reach out to thePyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

amathewc pushed a commit to amathewc/pytorch that referenced this pull requestApr 17, 2025
Summary: When we call torch.inference_mode, we seem to skip Autograd key causing the custom op export uses to be not decomposed properly before subclass dispatching starts. We fix this by force desugaring this op at Python keyTest Plan: testDifferential Revision: D71599541Pull Requestresolved:pytorch#149698Approved by:https://github.com/bdhirsh
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@bdhirshbdhirshbdhirsh approved these changes

@avikchaudhuriavikchaudhuriAwaiting requested review from avikchaudhuriavikchaudhuri is a code owner

@zhxchen17zhxchen17Awaiting requested review from zhxchen17zhxchen17 is a code owner

@ydwu4ydwu4Awaiting requested review from ydwu4ydwu4 is a code owner

@angelayiangelayiAwaiting requested review from angelayiangelayi is a code owner

Assignees

No one assigned

Labels

ciflow/trunkTrigger trunk jobs on your pull requestfb-exportedMergedrelease notes: export

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@tugsbayasgalan@facebook-github-bot@pytorchmergebot@bdhirsh

[8]ページ先頭

©2009-2025 Movatter.jp