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

Improve LR scheduler documentation in transfer learning tutorial#3681

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

Open
sammy-1904 wants to merge2 commits intopytorch:main
base:main
Choose a base branch
Loading
fromsammy-1904:improve-scheduler-comment

Conversation

@sammy-1904
Copy link

Description

This PR improves the documentation and comments related to the learning rate
scheduler (StepLR) in the transfer_learning_tutorial.py script.

Changes made:

  • Added clarification about the recommended order:optimizer.step() followed byscheduler.step().
  • Explained why StepLR is stepped once per epoch in this tutorial.
  • Improved clarity of the backward/optimizer comment inside the training loop.
  • Updated comments to align with current PyTorch best practices.

No functional changes were made. This is a documentation only improvement.

Checklist

  • The issue being addressed is documentation clarity (no existing issue number)
  • Only one change area is addressed in this PR
  • No unnecessary changes are included
  • PR follows PyTorch Tutorials contribution guidelines

@pytorch-bot
Copy link

pytorch-botbot commentedDec 2, 2025
edited
Loading

🔗 Helpful Links

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

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

✅ No Failures

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

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

@meta-cla
Copy link

meta-clabot commentedDec 2, 2025

Hi@sammy-1904!

Thank you for your pull request and welcome to our community.

Action Required

In order to mergeany pull request (code, docs, etc.), werequire contributors to sign ourContributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign athttps://code.facebook.com/cla.If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, thepull request will be tagged withCLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us atcla@meta.com. Thanks!

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

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@sammy-1904@AlannaBurke

[8]ページ先頭

©2009-2025 Movatter.jp