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