summaryrefslogtreecommitdiffstats
path: root/source/slang/diff.meta.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-10-27 12:30:15 -0700
committerGitHub <noreply@github.com>2022-10-27 12:30:15 -0700
commit8dc9efd256bd211d8c446971f09a7c79e644b110 (patch)
tree32612cfbd39531c1f21eab0777cf10a197b269d4 /source/slang/diff.meta.slang
parent0cbef6fd6d7924d37ef3ea5ec7c848c80947d13f (diff)
Rename `JVPDerivativeModifier` -> `ForwardDifferentiableAttribute`. (#2472)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/diff.meta.slang')
-rw-r--r--source/slang/diff.meta.slang3
1 files changed, 2 insertions, 1 deletions
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)