Update docs/DifferentiableProgrammingImplementation.md

Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org>
This commit is contained in:
Philip Turner
2021-12-07 03:44:39 -08:00
committed by GitHub
parent 5b1005880e
commit 811a9f4ef9

View File

@@ -310,7 +310,7 @@ Here is the result of activity analysis for this example:
// Varied values are in all caps.
// These values depend on the input (`x`).
@differentiable
func foo(_ X: Float) -> Float {
func f(_ X: Float) -> Float {
let SINX = sin(X)
let cos3 = cos(3)
let RESULT = SINX * cos3