From b4462187edeffb1f510e077f6bb41a01250e6b8f Mon Sep 17 00:00:00 2001 From: Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> Date: Thu, 9 May 2024 10:03:46 -0400 Subject: Add stdlib tests for `clamp` derivatives which also checks `max` and `min` derivatives (#4136) * Add stdlib tests for `clamp` derivatives which also checks `max` and `min` derivatives * Extend test --- .../dstdlib-clamp.slang.expected.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tests/autodiff-dstdlib/dstdlib-clamp.slang.expected.txt (limited to 'tests/autodiff-dstdlib/dstdlib-clamp.slang.expected.txt') diff --git a/tests/autodiff-dstdlib/dstdlib-clamp.slang.expected.txt b/tests/autodiff-dstdlib/dstdlib-clamp.slang.expected.txt new file mode 100644 index 000000000..b00b0060b --- /dev/null +++ b/tests/autodiff-dstdlib/dstdlib-clamp.slang.expected.txt @@ -0,0 +1,31 @@ +type: float +0.100000 +0.300000 +0.200000 +0.100000 +0.300000 +0.200000 +0.100000 +0.300000 +0.200000 +0.100000 +0.300000 +0.200000 +1.000000 +0.000000 +0.000000 +0.000000 +1.000000 +0.000000 +0.000000 +0.000000 +1.000000 +0.100000 +0.000000 +0.000000 +0.000000 +0.200000 +0.000000 +0.000000 +0.000000 +0.300000 -- cgit v1.2.3