mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add `differentiable_function` and `differentiable_function_extract` instructions. `differentiable_function` creates a `@differentiable` function-typed value from an original function operand and derivative function operands (optional). `differentiable_function_extract` extracts either the original or derivative function value from a `@differentiable` function. The differentiation transform canonicalizes `differentiable_function` instructions, filling in derivative function operands if missing. Resolves TF-1139 and TF-1140.
61 KiB
61 KiB