-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[AutoDiff] forbid derivative registration using @differentiable #30002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I accidentally deleted |
Test run caught some 'vjp:' in OpenSpiel! I'll fix that before proceeding with merging this PR. |
This change unblocks deprecation of @differentiable(vjp:) (swiftlang/swift#30002). PiperOrigin-RevId: 297439933 Change-Id: I0aad361fc9ae7091d7e49670a95f91b103d0f117
ca3311b
to
ab83c95
Compare
@swift-ci please test tensorflow |
This seems good to go now, but I'll wait until we have caught up with the master->tensorflow merge so that I don't further pile on conflicts. |
a439d6f
to
4544f5e
Compare
61a66ec
to
88dabef
Compare
88dabef
to
7f2495e
Compare
@swift-ci please test tensorflow |
Merging now that upstream mirror #30001 has been merged. |
This is the
tensorflow
branch PR corresponding to #30001. Repeating the description:Forbids the
jvp:
andvjp:
arguments to@differentiable
, deletes all the logic that handles them, and updates tests to use@derivative(of:)
instead.I left an error message saying that
jvp:
andvjp:
are deprecated, so that there is a good explanation for anyone who missed the deprecation warning and whose code stops working. I think we should wait until next release to remove this.I am running all the swift-apis, swift-models, swift-jupyter, swiftai, etc tests on this to catch any leftover
jvp:
orvjp:
that we forgot to remove.