Skip to content

Commit 650699c

Browse files
authored
Merge pull request #2249 from FluxML/mcabbott-patch-2
fix indent in recurrent.jl
2 parents 508d117 + d3d9e60 commit 650699c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/layers/recurrent.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -275,16 +275,16 @@ julia> r(rand(Float32, 3, 10)) |> size # batch size of 10
275275
```
276276
277277
# Note:
278-
`RNNCell`s can be constructed directly by specifying the non-linear function, the `Wi` and `Wh` internal matrices, a bias vector `b`, and a learnable initial state `state0`. The `Wi` and `Wh` matrices do not need to be the same type, but if `Wh` is `dxd`, then `Wi` should be of shape `dxN`.
278+
`RNNCell`s can be constructed directly by specifying the non-linear function, the `Wi` and `Wh` internal matrices, a bias vector `b`, and a learnable initial state `state0`. The `Wi` and `Wh` matrices do not need to be the same type, but if `Wh` is `dxd`, then `Wi` should be of shape `dxN`.
279279
280-
```julia
281-
julia> using LinearAlgebra
280+
```julia
281+
julia> using LinearAlgebra
282282
283-
julia> r = Flux.Recur(Flux.RNNCell(tanh, rand(5, 4), Tridiagonal(rand(5, 5)), rand(5), rand(5, 1)))
283+
julia> r = Flux.Recur(Flux.RNNCell(tanh, rand(5, 4), Tridiagonal(rand(5, 5)), rand(5), rand(5, 1)))
284284
285-
julia> r(rand(4, 10)) |> size # batch size of 10
286-
(5, 10)
287-
```
285+
julia> r(rand(4, 10)) |> size # batch size of 10
286+
(5, 10)
287+
```
288288
"""
289289
RNN(a...; ka...) = Recur(RNNCell(a...; ka...))
290290
Recur(m::RNNCell) = Recur(m, m.state0)

0 commit comments

Comments
 (0)