Skip to content

Commit 497f0c5

Browse files
committed
Fix some docstrings
1 parent 34295da commit 497f0c5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/layers/basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ extraChain(::Tuple{}, x) = ()
157157

158158
"""
159159
Dense(in => out, σ=identity; bias=true, init=glorot_uniform)
160-
Dense(weights, bias=true, σ=identity)
160+
Dense(W::AbstractMatrix, [bias, σ])
161161
162162
Create a traditional fully connected layer, whose forward pass is given by:
163163

src/layers/conv.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ Note that `pad=SamePad()` here tries to ensure `size(output,d) == size(x,d) * st
209209
Parameters are controlled by additional keywords, with defaults
210210
`init=glorot_uniform` and `bias=true`.
211211
212+
ConvTranspose layer can also be constructed with given weights and biases.
213+
While constructung a ConvTranspose layer by providing weights and biases, the layer accepts the
214+
same keywords (and has the same defaults) as the `ConvTranspose((4,4), 3 => 7, relu)` method.
215+
212216
See also [`Conv`](@ref) for more detailed description of keywords.
213217
214218
# Examples
@@ -344,6 +348,10 @@ specifying the size of the convolutional kernel;
344348
Parameters are controlled by additional keywords, with defaults
345349
`init=glorot_uniform` and `bias=true`.
346350
351+
CrossCor layer can also be constructed with given weights and biases.
352+
While constructung a CrossCor layer by providing weights and biases, the layer accepts the
353+
same keywords (and has the same defaults) as the `CrossCor((4,4), 3 => 7, relu)` method.
354+
347355
See also [`Conv`](@ref) for more detailed description of keywords.
348356
349357
# Examples

0 commit comments

Comments
 (0)