diff options
| author | Yong He <yonghe@outlook.com> | 2022-11-09 19:19:17 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-09 19:19:17 -0800 |
| commit | 004f6e30b5df3a3df2c26fe5c4a5e78c49f71166 (patch) | |
| tree | cbc942746bab043da0eb5298993d95f9665dfddf /tests/autodiff/dstdlib.slang | |
| parent | cedd93690c63188cf98e452c9d104cf51aad6c4e (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.slang')
| -rw-r--r-- | tests/autodiff/dstdlib.slang | 6 |
1 files changed, 3 insertions, 3 deletions
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<float> 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)] |
