summaryrefslogtreecommitdiff
path: root/tests/autodiff
diff options
context:
space:
mode:
authorSai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com>2023-02-17 18:02:58 -0500
committerGitHub <noreply@github.com>2023-02-17 15:02:58 -0800
commit92ccc8f17881d010f399b63aee80ba20bdc7095c (patch)
treedbbb6684ac90e36786c3973393515f8d16f0d5f6 /tests/autodiff
parent5cd39d1527f87ebab966cbd9c136b93058a709bc (diff)
AD: More legacy type handling cleanup + user-defined reverse-mode fix (#2662)
* WIP: Remove all legacy type checking * Fixed issue with user-defined backward derivatives not bypassing the AD process --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tests/autodiff')
-rw-r--r--tests/autodiff/backward-diff-check.slang1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/autodiff/backward-diff-check.slang b/tests/autodiff/backward-diff-check.slang
index 2718f31f1..0e44cfece 100644
--- a/tests/autodiff/backward-diff-check.slang
+++ b/tests/autodiff/backward-diff-check.slang
@@ -14,6 +14,7 @@ float test()
}
float noDiffFunc(float x) { return x; }
+
[BackwardDerivativeOf(test)]
void d_test(float dOut)
{