mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The `@noDerivative` attribute marks the non-differentiability parameters of a `@differentiable` function type. All parameters except those marked with `@noDerivative` are differentiability parameters. For example, `@differentiable (Float, @noDerivative Float) -> Float` is only differentiable with respect to its first parameter. The `@noDerivative` attribute is represented as a `SILParameterDifferentiability` bit on `SILParameterInfo`. Add round-trip serialization tests. Resolves TF-872.
191 KiB
191 KiB