Opening your learning space
Starting the app …
Opening your learning space
Starting the app …
The convolution-size formula determines a discrete kernel’s spatial output dimension with padding, stride and dilation.
Free to browse · flashcards or a multiple-choice quiz · import from Essential
Formula
Dimensions and parameters are grid cells; output is a count
| Symbol | Meaning | Unit |
|---|---|---|
| Input height or width | grid cells | |
| Kernel size | grid cells | |
| Padding per side | grid cells | |
| Stride | grid cells | |
| Dilation | dimensionless |
H_{out}=\left\lfloor\frac{H_{in}+2p-d(k-1)-1}{s}+1\right\rfloorApply the same relation to width for the other spatial axis. The effective kernel extent is d(k−1)+1. The floor appears when the kernel does not fit exactly at the boundary; libraries can differ according to padding mode and rounding rules. Channels and filter count change tensor depth, not spatial height.
Apply the same relation to width for the other spatial axis. The effective kernel extent is d(k−1)+1. The floor appears when the kernel does not fit exactly at the boundary; libraries can differ according to padding mode and rounding rules. Channels and filter count change tensor depth, not spatial height.
The convolution-size formula determines a discrete kernel’s spatial output dimension with padding, stride and dilation.
Defining relation
The equation states the defining relation within its stated domain.
Use the example for Convolution output dimension to explain which inputs determine the requested output.
The example connects concrete inputs to its result.
The convolution-size formula determines a discrete kernel’s spatial output dimension with padding, stride and dilation.
The relation applies only under its stated assumptions.
Applying the relation to a different case without checking its stated assumptions.
Check the validity range before substituting values: Apply the same relation to width for the other spatial axis. The effective kernel extent is d(k−1)+1. The floor appears when the kernel does not fit exactly at the boundary;.
Formula cluster
The convolution-size formula determines a discrete kernel’s spatial output dimension with padding, stride and dilation.
For Hin=32, k=3, p=1, s=1 and d=1, Hout=floor((32+2−2−1)/1+1)=32.
Check CNN tensor shapes and plan memory use and layer composition.
Here is how to work through a typical Convolution output dimension (Hout = floor((Hin+2p−d(k−1)−1)/s+1)) task step by step:
Task
Use the example for Convolution output dimension to explain which inputs determine the requested output.
Solution path
The example connects concrete inputs to its result.
The convolution-size formula determines a discrete kernel’s spatial output dimension with padding, stride and dilation.
The relation applies only under its stated assumptions.
The relation Hout=\left\lfloor\frac{Hin+2p-d(k-1)-1}{s}+1\right\rfloor summarizes The convolution-size formula determines a discrete kernel’s spatial output dimension with padding, stride and dilation. Read it as a model for defined quantities, not as an automatic claim about every real situation. In the example For Hin=32, k=3, p=1, s=1 and d=1, Hout=floor((32+2−2−1)/1+1)=32., symbols are connected to concrete values and the result is interpreted in context. Validity limit: Apply the same relation to width for the other spatial axis. The effective kernel extent is d(k−1)+1. The floor appears when the kernel does not fit exactly at the boundary; Source: Stanford CS231n, Convolutional Neural Networks: convolution dimension notes.
First write down the requested quantity and all given values with their symbols. Substitute them into the defining relation and check unit consistency. The example For Hin=32, k=3, p=1, s=1 and d=1, Hout=floor((32+2−2−1)/1+1)=32. provides a worked check: formula and result must have compatible scale and meaning; round only at the end. Validity limit: Apply the same relation to width for the other spatial axis. The effective kernel extent is d(k−1)+1. The floor appears when the kernel does not fit exactly at the boundary; Source: Stanford CS231n, Convolutional Neural Networks: convolution dimension notes.
The formula applies only when quantities are defined as in the source and background. Check boundary cases, measurement conditions and whether an approximation rather than equality is intended. Substitution can be algebraically correct yet technically wrong when assumptions fail or the population or system boundary changes. Validity limit: Apply the same relation to width for the other spatial axis. The effective kernel extent is d(k−1)+1. The floor appears when the kernel does not fit exactly at the boundary; Source: Stanford CS231n, Convolutional Neural Networks: convolution dimension notes.
The stated units are: Dimensions and parameters are grid cells; output is a count. Convert values to a consistent unit system before substitution; counts, percentages and dimensionless ratios are not interchangeable. The variable list states the role of each symbol. Dimensional analysis catches many errors but does not replace checking the formula's assumptions. Validity limit: Apply the same relation to width for the other spatial axis. The effective kernel extent is d(k−1)+1. The floor appears when the kernel does not fit exactly at the boundary; Source: Stanford CS231n, Convolutional Neural Networks: convolution dimension notes.
Comparison helps when both quantities address the same question but emphasize different properties. Report the definition, input data, threshold or averaging with the value. The source Stanford CS231n, Convolutional Neural Networks: convolution dimension notes. supports the definition used here; other conventions can differ. Choose the measure to match the learning or analysis goal. Validity limit: Apply the same relation to width for the other spatial axis. The effective kernel extent is d(k−1)+1. The floor appears when the kernel does not fit exactly at the boundary; Source: Stanford CS231n, Convolutional Neural Networks: convolution dimension notes.
Quanta exam set
Curated exam set for "Convolution output dimension":
Question (front)
Which formula describes Convolution output dimension?
Answer in your set
Question (front)
How do you rearrange Convolution output dimension for Defining relation?
Answer in your set
Question (front)
Which common mistake happens with Convolution output dimension?
Answer in your set
+ 8 more cards: units, variables, derivation, example, exam task
The formula set contains 11 cards. After importing, review them and start practicing; your ratings determine later review intervals.
This list names subject references and further reading. A page or section number appears when it is part of the reference; these are not verbatim quotations.
Create a curated FSRS exam set for Hout = floor((Hin+2p−d(k−1)−1)/s+1): formula recall, variables, derivation, rearrangement, worked example, common mistakes and exam context.
Curated formula set · LaTeX · FSRS spaced repetition · import from Essential