Skip to content

Commit

Permalink
Fix derivative of squareRoot in document. (tensorflow#162)
Browse files Browse the repository at this point in the history
Follow-up to swiftlang/swift#23139.

Addresses tensorflow#161.
  • Loading branch information
dan-zheng authored Mar 24, 2019
1 parent d546d47 commit 770c741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/DifferentiableFunctions.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ let v = Vector(x: 2, y: 2)
print(v.magnitude)
// 2.828427
print(gradient(at: v) { v in v.magnitude })
// Vector(x: 64.0, y: 64.0)
// Vector(x: 0.70710677, y: 0.70710677)
```

### Differentiating with respect to
Expand Down

0 comments on commit 770c741

Please sign in to comment.