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 --- tests/autodiff/dstdlib.slang | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests/autodiff/dstdlib.slang') diff --git a/tests/autodiff/dstdlib.slang b/tests/autodiff/dstdlib.slang index 614de54f6..05d915c29 100644 --- a/tests/autodiff/dstdlib.slang +++ b/tests/autodiff/dstdlib.slang @@ -6,17 +6,20 @@ RWStructuredBuffer outputBuffer; typedef __DifferentialPair dpfloat; -__differentiate_jvp float f(float x) +[ForwardDifferentiable] +float f(float x) { return dstd.exp(x); } -__differentiate_jvp float g(float x) +[ForwardDifferentiable] +float g(float x) { return dstd.sin(x); } -__differentiate_jvp float h(float x) +[ForwardDifferentiable] +float h(float x) { return dstd.cos(x); } -- cgit v1.2.3