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: recipe tutorial on how to calculate layer output dimensions #2944

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

loganthomas
Copy link
Contributor

Fixes #2926
Replaces #2923 (accidental deletion)

Description

New recipe tutorial on how to calculate layer output dimensions

  • How to transition from convolution and pooling layers to linear layers in a model
  • How to manually calculate the output dimensions after applying a convolution or pooling layer
  • How to print the shape of internal tensors for inspecting dimensionality changes in a model
  • How to use the torchinfo package to show output dimensions for all layers in a model

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 Jun 19, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 6ce19d7 with merge base 0740801 (image):
💚 Looks good so far! There are no failures yet. 💚

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

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 calculating layer output dimensions
2 participants