Skip to content
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

NEW: beginner recipe on layer parameters #2914

Closed
wants to merge 10 commits into from
Closed

NEW: beginner recipe on layer parameters #2914

wants to merge 10 commits into from

Conversation

loganthomas
Copy link
Contributor

@loganthomas loganthomas commented Jun 8, 2024

Fixes #2924

Description

New beginner recipe on how to access model parameters, collect trainable parameters, and use torchinfo.summary()

  • How to inspect a model's parameters using .parameters() and .named_parameters()
  • How to collect the trainable parameters of a model
  • How to use the torchinfo package (formerly torch-summary) to print a model summary

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.

cc @sekyondaMeta @svekars @kit1980 @brycebortree

Copy link

pytorch-bot bot commented Jun 8, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 4c59fe5 with merge base 6537199 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@loganthomas
Copy link
Contributor Author

@pytorchbot label docathon-h1-2024

@loganthomas loganthomas marked this pull request as draft June 9, 2024 01:05
@loganthomas loganthomas marked this pull request as ready for review June 9, 2024 20:37
Update title to strip "Tutorials"
@loganthomas loganthomas changed the title NEW: beginner tutorial on layer parameters NEW: beginner recipe on layer parameters Jun 10, 2024
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.

💡 [REQUEST] - New recipe tutorial on accessing model parameters
3 participants