From 004f6e30b5df3a3df2c26fe5c4a5e78c49f71166 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 9 Nov 2022 19:19:17 -0800 Subject: Add `[ForwardDerivativeOf]` attribute. (#2501) * Add [ForwardDerivativeOf] attribute. * Fix handling around phi nodes. * Fixes. * Remove IR opcode for ForwardDerivativeOfDecoration. Co-authored-by: Yong He --- tests/autodiff/dstdlib.slang | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/autodiff/dstdlib.slang') diff --git a/tests/autodiff/dstdlib.slang b/tests/autodiff/dstdlib.slang index 247200511..b96cd3c51 100644 --- a/tests/autodiff/dstdlib.slang +++ b/tests/autodiff/dstdlib.slang @@ -9,19 +9,19 @@ typedef DifferentialPair dpfloat; [ForwardDifferentiable] float f(float x) { - return dstd.exp(x); + return exp(x); } [ForwardDifferentiable] float g(float x) { - return dstd.sin(x); + return sin(x); } [ForwardDifferentiable] float h(float x) { - return dstd.cos(x); + return cos(x); } [numthreads(1, 1, 1)] -- cgit v1.2.3