Skip to content

Commit 4f32aa9

Browse files
committed
one more case
1 parent 3b33493 commit 4f32aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/models/basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ When a function has many parameters, we can get gradients of each one at the sam
2626
julia> f(x, y) = sum((x .- y).^2);
2727
2828
julia> gradient(f, [2, 1], [2, 0])
29-
([0, 2], [0, -2])
29+
([0.0, 2.0], [-0.0, -2.0])
3030
```
3131

3232
These gradients are based on `x` and `y`. Flux works by instead taking gradients based on the weights and biases that make up the parameters of a model.

0 commit comments

Comments
 (0)