attribute [ForwardDifferentiable]¶
Description¶
Marks a function as being differentiable in forward-mode.
See the user guide section on forward-mode differentiation for more
If used on a function that has a definition (i.e. a function body),Slang will use automatic-differentiation to generate a forward-mode derivative of this function, unless an implementation is provided by the user via [ForwardDerivative(fn)]
If used on an interface requirement, the signature of the requirement is modified to include forward-differentiability. Any satisfying method must also be forward-differentiable, or provide an appropriate derivative implementation. See the user guide section on auto-diff for interfaces for more
Signature¶
[ForwardDifferentiable]