Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Dec 2, 2025

📝 FAQ UPDATE

Course: machine-learning-zoomcamp
Section: module-8 (Module 8 covers CNNs and how Flatten determines the input size for the first Linear layer; the new content complements and extends this with modern, reliable techniques.)
Related Issue: #43

Question

Where does the number of input features to the first Linear layer after a CNN/Flatten come from, and how can I determine it reliably?

Decision Rationale

The existing FAQ already explains that the number of features after Flatten is the product of the last feature map dimensions, but the new proposal adds practical, updated methods (torchinfo.summary, dummy input passes, and LazyLinear) plus a concrete example, enriching the Module 8 CNN guidance.

Placement Details

  • Section ID: module-8
  • Sort Order: 27
  • Document ID: 52fbe7351e

🤖 Generated by FAQ Bot

Closes #43

@frederick-douglas-pearce
Copy link
Contributor

Well, that's exactly the decision I was expecting. Thanks, FAQ automation workflow! 😄

@alexeygrigorev alexeygrigorev merged commit aee6bdb into main Dec 7, 2025
@alexeygrigorev alexeygrigorev deleted the faq-bot/issue-43 branch December 7, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FAQ] How many features output from Conv2D layer in PyTorch model?

3 participants