mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AutoDiff] forbid derivative registration using @differentiable (#30001)
Delete `@differentiable` attribute `jvp:` and `vjp:` arguments for derivative registration. `@derivative` attribute is now the canonical way to register derivatives. Resolves TF-1001.
This commit is contained in:
@@ -1816,10 +1816,6 @@ namespace decls_block {
|
||||
Differentiable_DECL_ATTR,
|
||||
BCFixed<1>, // Implicit flag.
|
||||
BCFixed<1>, // Linear flag.
|
||||
IdentifierIDField, // JVP name.
|
||||
DeclIDField, // JVP function declaration.
|
||||
IdentifierIDField, // VJP name.
|
||||
DeclIDField, // VJP function declaration.
|
||||
GenericSignatureIDField, // Derivative generic signature.
|
||||
BCArray<BCFixed<1>> // Differentiation parameter indices' bitvector.
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user