summaryrefslogtreecommitdiff
path: root/tests/autodiff-dstdlib/dstdlib-max-min.slang.expected.txt
diff options
context:
space:
mode:
authorSai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com>2025-02-20 23:31:05 -0800
committerGitHub <noreply@github.com>2025-02-20 23:31:05 -0800
commitca592d2791047be4df3cac44c18af99f003bd085 (patch)
tree9cbe6ca41ad95257d16bbcc01b0639505203916a /tests/autodiff-dstdlib/dstdlib-max-min.slang.expected.txt
parent4d286aab2ec23c081f23846f5dfdb30b1c05728b (diff)
Fix gradient behavior for min() and max() functions at boundaries. When input values are equal, the gradient is split evenly between both inputs. (#6411)
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tests/autodiff-dstdlib/dstdlib-max-min.slang.expected.txt')
-rw-r--r--tests/autodiff-dstdlib/dstdlib-max-min.slang.expected.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/autodiff-dstdlib/dstdlib-max-min.slang.expected.txt b/tests/autodiff-dstdlib/dstdlib-max-min.slang.expected.txt
new file mode 100644
index 000000000..504343b58
--- /dev/null
+++ b/tests/autodiff-dstdlib/dstdlib-max-min.slang.expected.txt
@@ -0,0 +1,21 @@
+type: float
+5.000000
+-2.000000
+3.000000
+-0.500000
+2.000000
+-2.000000
+3.000000
+-0.500000
+0.500000
+0.500000
+0.500000
+0.500000
+3.000000
+-0.500000
+4.000000
+2.000000
+3.000000
+-0.500000
+2.000000
+-3.000000 \ No newline at end of file