We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 328bc01 + ffd2db8 commit 2f49370Copy full SHA for 2f49370
docs/src/index.md
@@ -172,6 +172,8 @@ julia> (l::Linear)(x) = l.W * x .+ l.b
172
julia> model = Linear(rand(2, 5), rand(2))
173
Linear([0.267663 … 0.334385], [0.0386873, 0.0203294])
174
175
+julia> x = rand(5);
176
+
177
julia> dmodel = gradient(model -> sum(model(x)), model)[1]
178
(W = [0.652543 … 0.683588], b = [1.0, 1.0])
179
```
0 commit comments