Skip to content

Commit 9424f44

Browse files
authored
Merge pull request #28768 from rxwei/correct-ad-builtins
2 parents 70c8593 + d4eb63f commit 9424f44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/DifferentiableProgramming.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2129,7 +2129,7 @@ func valueWithDifferential<T, R>(
21292129
) -> (value: R,
21302130
differential: @differentiable(linear) (T.TangentVector) -> R.TangentVector) {
21312131
// Compiler built-in.
2132-
Builtin.autodiffApply_jvp_arity1(body, x)
2132+
Builtin.applyDerivative_arity1(body, x)
21332133
}
21342134

21352135

@@ -2138,7 +2138,7 @@ func transpose<T, R>(
21382138
of body: @escaping @differentiable(linear) (T) -> R
21392139
) -> @differentiable(linear) (R) -> T {
21402140
// Compiler built-in.
2141-
{ x in Builtin.autodiffApply_transpose(body, x) }
2141+
{ x in Builtin.applyTranspose_arity1(body, x) }
21422142
}
21432143
```
21442144

0 commit comments

Comments
 (0)