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

Optimize register_full_backward_hook description when all input no grad#151785

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

Conversation

@zeshengzong
Copy link
Contributor

Fixes#100528

Test Result

Before

image

After

image

@pytorch-bot
Copy link

pytorch-botbot commentedApr 21, 2025
edited
Loading

🔗 Helpful Links

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

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

✅ No Failures

As of commitcfc2c1a with merge baseeb1f85a (image):
💚 Looks good so far! There are no failures yet. 💚

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

@zeshengzongzeshengzong marked this pull request as ready for reviewApril 21, 2025 11:20
@albanDalbanD requested review fromsoulitzer and removed request foralbanDApril 21, 2025 14:21
Copy link
Contributor

@soulitzersoulitzer left a comment
edited
Loading

Choose a reason for hiding this comment

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

Thanks!

But to change up the ordering/wording, maybe I prefer the following structure:

  1. Ordinarily, the hook fires when the gradients are computed with respect to the module inputs.
  2. If none of the module inputs require gradients, the hook will fire when the gradients are computed with respect to module outputs
  3. If none of the module outputs require gradients, then the hooks will not fire.

@soulitzersoulitzer added triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module release notes: autogradrelease notes category labelsApr 21, 2025
@pytorchpytorch deleted a comment fromgithub-actionsbotApr 21, 2025
@zeshengzong
Copy link
ContributorAuthor

Changed, it looks like this now:

image

Copy link
Contributor

@soulitzersoulitzer left a comment

Choose a reason for hiding this comment

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

Thanks for the update!

@soulitzer
Copy link
Contributor

@pytorchbot merge

pytorch-bot[bot] reacted with thumbs up emoji

@pytorch-botpytorch-botbot added the ciflow/trunkTrigger trunk jobs on your pull request labelApr 22, 2025
@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

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@soulitzersoulitzersoulitzer approved these changes

@jbschlosserjbschlosserAwaiting requested review from jbschlosserjbschlosser is a code owner

@mikaylagawareckimikaylagawareckiAwaiting requested review from mikaylagawareckimikaylagawarecki is a code owner

Assignees

No one assigned

Labels

ciflow/trunkTrigger trunk jobs on your pull requestMergedopen sourcerelease notes: autogradrelease notes categorytriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Backward hook execution order changes when input.requires_grad is False

4 participants

@zeshengzong@soulitzer@pytorchmergebot@pytorchbot

[8]ページ先頭

©2009-2025 Movatter.jp