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-vector.slang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/autodiff/dstdlib-vector.slang') diff --git a/tests/autodiff/dstdlib-vector.slang b/tests/autodiff/dstdlib-vector.slang index 1a1bd0dfa..ba66f0756 100644 --- a/tests/autodiff/dstdlib-vector.slang +++ b/tests/autodiff/dstdlib-vector.slang @@ -10,7 +10,7 @@ typedef DifferentialPair dpfloat; float f(float x) { float3 vx = float3(x, 2*x, 3*x); - float3 vexpx = dstd.exp(vx); + float3 vexpx = exp(vx); return vexpx.x + vexpx.y + vexpx.z; } -- cgit v1.2.3