Skip to content

Commit 3885807

Browse files
Explain stride≠1 case for SamePad
This PR adds a line to explain what `SamePad()` does when stride is not equal to 1.
1 parent 2606e64 commit 3885807

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/layers/conv.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ conv_reshape_bias(bias::AbstractVector, stride) = reshape(bias, map(_->1, stride
1616
Passed as an option to convolutional layers (and friends), this causes
1717
the padding to be chosen such that the input and output sizes agree
1818
(on the first `N` dimensions, the kernel or window) when `stride==1`.
19+
When `stride≠1`, the output size equals `ceil(input_size/stride)`.
1920
2021
See also [`Conv`](@ref), [`MaxPool`](@ref).
2122
"""

0 commit comments

Comments
 (0)