File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1515,10 +1515,12 @@ Linearity parameters are parameters with respect to which a function is linear.
1515
1515
The ` @transpose ` attribute accepts a ` wrt: ` argument which specifies a set of
1516
1516
linearity parameters of the original function. If ` wrt: ` is not specified,
1517
1517
linearity parameters default to all parameters. A ` wrt: ` argument in
1518
- ` @derivative ` attributes can be a parameter index or a tuple of multiple
1519
- parameter indices. All linearity parameters must have a type that conforms to
1520
- both ` Differentiable ` and ` AdditiveArithmetic ` and satisfies
1521
- ` Self == Self.TangentVector ` .
1518
+ ` @derivative ` attributes can be a parameter index, a ` self ` , or a tuple of
1519
+ parameter indices and ` self ` . When there are more than one linearity parameters
1520
+ specified, parameter indices must be ascending, and ` self ` must be the first
1521
+ parameter when exists. All linearity parameters must have a type that conforms
1522
+ to both ` Differentiable ` and ` AdditiveArithmetic ` and satisfies `Self ==
1523
+ Self.TangentVector`.
1522
1524
1523
1525
When linearity parameters do not include all of the original function's
1524
1526
parameters, those parameters must be taken in the front of the parameter list of
You can’t perform that action at this time.
0 commit comments