diff options
| author | Yong He <yonghe@outlook.com> | 2023-04-10 13:43:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-10 13:43:18 -0700 |
| commit | d82992e30d5985001870e00afdf27091f59464f2 (patch) | |
| tree | 6ee2c4ce4c98686e5721bda89f274343e366ab4e /tests/autodiff-dstdlib/dstdlib-sqrt.slang | |
| parent | ea15647ba6bccb5ac48de5f4b80b8c2769d69b8f (diff) | |
Cleaner impl of unary stdlib derivative functions. (#2785)
* Cleaner impl of unary stdlib derivative functions.
* fixup
* Fix.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/autodiff-dstdlib/dstdlib-sqrt.slang')
| -rw-r--r-- | tests/autodiff-dstdlib/dstdlib-sqrt.slang | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/autodiff-dstdlib/dstdlib-sqrt.slang b/tests/autodiff-dstdlib/dstdlib-sqrt.slang index d68a2697c..ee3fb94b7 100644 --- a/tests/autodiff-dstdlib/dstdlib-sqrt.slang +++ b/tests/autodiff-dstdlib/dstdlib-sqrt.slang @@ -41,7 +41,7 @@ void computeMain(uint3 dispatchThreadID: SV_DispatchThreadID) dpfloat dpx = dpfloat(0.0, 1.0); dpfloat res = __fwd_diff(diffSqrt)(dpx); outputBuffer[4] = res.p; // Expect: 0.000000 - outputBuffer[5] = res.d; // Expect: 0.000000 + outputBuffer[5] = res.d; // Expect: 1581.138916 } { |
