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 | |
| 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')
| -rw-r--r-- | tests/autodiff-dstdlib/dstdlib-sqrt.slang | 2 | ||||
| -rw-r--r-- | tests/autodiff-dstdlib/dstdlib-sqrt.slang.expected.txt | 2 |
2 files changed, 2 insertions, 2 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 } { diff --git a/tests/autodiff-dstdlib/dstdlib-sqrt.slang.expected.txt b/tests/autodiff-dstdlib/dstdlib-sqrt.slang.expected.txt index 7e0fdf02f..7b38d1520 100644 --- a/tests/autodiff-dstdlib/dstdlib-sqrt.slang.expected.txt +++ b/tests/autodiff-dstdlib/dstdlib-sqrt.slang.expected.txt @@ -4,7 +4,7 @@ type: float 10.000000 -0.150000 0.000000 -0.000000 +1581.138916 0.158114 0.577350 0.250000 |
