Skip to content

Commit 1f82da4

Browse files
authored
Merge pull request #1965 from KronosTheLate/docstring_SamePad
Explain `stride≠1` case for SamePad
2 parents 2606e64 + 3885807 commit 1f82da4

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)