Skip to content

Commit d4eb63f

Browse files
committed
[Docs] [AutoDiff] Correct AD builtins.
* `Builtin.autodiffApply*` has been renamed to `Builtin.applyDerivative*`. * The reason I'm not adding `_jvp` is because there will no longer be `_vjp`, which will make this suffix entirely unnecessary. * The transpose application builtin is named `Builtin.applyTranspose*`.
1 parent aa9281a commit d4eb63f

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
@@ -2059,7 +2059,7 @@ func valueWithDifferential<T, R>(
20592059
) -> (value: R,
20602060
differential: @differentiable(linear) (T.TangentVector) -> R.TangentVector) {
20612061
// Compiler built-in.
2062-
Builtin.autodiffApply_jvp_arity1(body, x)
2062+
Builtin.applyDerivative_arity1(body, x)
20632063
}
20642064

20652065

@@ -2068,7 +2068,7 @@ func transpose<T, R>(
20682068
of body: @escaping @differentiable(linear) (T) -> R
20692069
) -> @differentiable(linear) (R) -> T {
20702070
// Compiler built-in.
2071-
{ x in Builtin.autodiffApply_transpose(body, x) }
2071+
{ x in Builtin.applyTranspose_arity1(body, x) }
20722072
}
20732073
```
20742074

0 commit comments

Comments
 (0)