From 8dc9efd256bd211d8c446971f09a7c79e644b110 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 27 Oct 2022 12:30:15 -0700 Subject: Rename `JVPDerivativeModifier` -> `ForwardDifferentiableAttribute`. (#2472) Co-authored-by: Yong He --- source/slang/diff.meta.slang | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/slang/diff.meta.slang') diff --git a/source/slang/diff.meta.slang b/source/slang/diff.meta.slang index 38d7270e4..ca7c1d3bd 100644 --- a/source/slang/diff.meta.slang +++ b/source/slang/diff.meta.slang @@ -2,7 +2,8 @@ /// Modifer to mark a function for forward-mode differentiation. /// i.e. the compiler will automatically generate a new function /// that computes the jacobian-vector product of the original. -syntax __differentiate_jvp : JVPDerivativeModifier; +__attributeTarget(FunctionDeclBase) +attribute_syntax [ForwardDifferentiable] : ForwardDifferentiableAttribute; // Custom JVP Function reference __attributeTarget(FunctionDeclBase) -- cgit v1.2.3