Skip to content

Commit

Permalink
Merge pull request #2281 from ctarn/ctarn/doc
Browse files Browse the repository at this point in the history
  • Loading branch information
darsnack authored Jun 29, 2023
2 parents 24b1eb2 + 4879407 commit 34a5f98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/layers/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ x1 → layer1 → y1 ↘
... or written as:
```julia
y1 = layer1(x1)
y2 = layer2(connection(x2, y1))
y3 = layer3(connection(x3, y2))
y2 = layer2(connection(y1, x2))
y3 = layer3(connection(y2, x3))
```
2. With just one input, each layer receives the same `x` combined with the previous output.
Expand All @@ -589,7 +589,7 @@ y3 = layer3(connection(x3, y2))
```julia
y[1] == layers[1](x)
for i in 2:length(layers)
y[i] == connection(x, layers[i](y[i-1]))
y[i] == connection(layers[i](y[i-1]), x)
end
```
Expand Down

0 comments on commit 34a5f98

Please sign in to comment.