mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* Add all [differential operators](https://github.com/apple/swift/blob/master/docs/DifferentiableProgramming.md#list-of-differential-operators). * Add `withoutDerivative(at:)`, used for efficiently stopping the derivative propagation at a value and causing the derivative at the value to be zero. * Add utility `differentiableFunction(from:)`, used for creating a `@differentiable` function from an original function and a derivative function. Mostly work done by @marcrasi and @dan-zheng. Partially resolves TF-843. TODO: * Add `AnyDerivative`. * Add `Array.differentiableMap(_:)` and `differentiableReduce(_:_:)`.
11 KiB
11 KiB