[AutoDiff upstream] add @noDerivative to AnyFunctionType params#28278
[AutoDiff upstream] add @noDerivative to AnyFunctionType params#28278swift-ci merged 5 commits intoswiftlang:masterfrom
Conversation
|
The name |
|
Well, that isn't right either, because it is possible differentiable but you don't want it in this case - better names still desired :) |
|
I discussed the naming with @dan-zheng, and we think that It's already named cc @rxwei for opinions. I'll wait a bit to see if anyone disagrees before I make the code changes. |
|
I think we should use |
|
I have renamed this to |
|
@swift-ci please test |
1 similar comment
|
@swift-ci please test |
|
+1 for |
We agreed to move to rename `@nondiff` to `@noDerivative` (in line with the `@noDerivative` declaration attribute) in #28278.
|
I have resolved merge conflicts, and I plan to do a test and merge soon. |
9360f60 to
72194c5
Compare
|
@swift-ci please test and merge |
1 similar comment
|
@swift-ci please test and merge |
Cherry-picks #28278 to `tensorflow` branch. `@nondiff` exists with a deprecation warning.
Adds the
@noDerivativeattribute toAnyFunctionTypeparameters.This attribute is used to determine which parameters a differentiable function type is differentiable with respect to, e.g.
@differentiable (Float, @noDerivative Float) -> Floatis only differentiable with respect to its first parameter.Also adds serialization for the attribute.
This resolves TF-870.