diff options
| author | Yong He <yonghe@outlook.com> | 2022-10-27 12:30:15 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-27 12:30:15 -0700 |
| commit | 8dc9efd256bd211d8c446971f09a7c79e644b110 (patch) | |
| tree | 32612cfbd39531c1f21eab0777cf10a197b269d4 /tests/autodiff/dstdlib.slang | |
| parent | 0cbef6fd6d7924d37ef3ea5ec7c848c80947d13f (diff) | |
Rename `JVPDerivativeModifier` -> `ForwardDifferentiableAttribute`. (#2472)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/autodiff/dstdlib.slang')
| -rw-r--r-- | tests/autodiff/dstdlib.slang | 9 |
1 files changed, 6 insertions, 3 deletions
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<float> outputBuffer; typedef __DifferentialPair<float> 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); } |
