summaryrefslogtreecommitdiff
path: root/tests/autodiff/dstdlib-vector.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-11-09 19:19:17 -0800
committerGitHub <noreply@github.com>2022-11-09 19:19:17 -0800
commit004f6e30b5df3a3df2c26fe5c4a5e78c49f71166 (patch)
treecbc942746bab043da0eb5298993d95f9665dfddf /tests/autodiff/dstdlib-vector.slang
parentcedd93690c63188cf98e452c9d104cf51aad6c4e (diff)
Add `[ForwardDerivativeOf]` attribute. (#2501)
* Add [ForwardDerivativeOf] attribute. * Fix handling around phi nodes. * Fixes. * Remove IR opcode for ForwardDerivativeOfDecoration. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/autodiff/dstdlib-vector.slang')
-rw-r--r--tests/autodiff/dstdlib-vector.slang2
1 files changed, 1 insertions, 1 deletions
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<float> 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;
}