From d82992e30d5985001870e00afdf27091f59464f2 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 10 Apr 2023 13:43:18 -0700 Subject: Cleaner impl of unary stdlib derivative functions. (#2785) * Cleaner impl of unary stdlib derivative functions. * fixup * Fix. --------- Co-authored-by: Yong He --- tests/autodiff-dstdlib/dstdlib-sqrt.slang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/autodiff-dstdlib/dstdlib-sqrt.slang') 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 } { -- cgit v1.2.3