Skip to content

Commit e867425

Browse files
committed
doctest for SamePad
1 parent 497f0c5 commit e867425

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/layers/conv.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ the padding to be chosen such that the input and output sizes agree
1919
When `stride≠1`, the output size equals `ceil(input_size/stride)`.
2020
2121
See also [`Conv`](@ref), [`MaxPool`](@ref).
22+
23+
# Examples
24+
```jldoctest
25+
julia> Conv((2,2), 1 => 1, pad=SamePad())
26+
Conv((2, 2), 1 => 1, pad=(1, 0, 1, 0)) # 5 parameters
27+
```
2228
"""
2329
struct SamePad end
2430

0 commit comments

Comments
 (0)