[test] Consolidate test_func helpers and add adjoint-identity harness - #1869
[test] Consolidate test_func helpers and add adjoint-identity harness#1869leetcodez wants to merge 1 commit into
Conversation
|
clang-tidy review says "All clean, LGTM! 👍" |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
fb1fd40 to
d69cafb
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
|
What is the reason for this change? |
The goal was to add a test harness that catches silently wrong gradients by cross-checking reverse mode against forward mode (they're computed independently). |
d69cafb to
68e8fd9
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
a8b4f64 to
2631ceb
Compare
|
https://github.com/vgvassilev/clad/blob/master/test/Features/stl-cmath.cpp has similar infrastructure. This seems to be duplicating parts of it. |
|
clang-tidy review says "All clean, LGTM! 👍" |
2631ceb to
144f4ec
Compare
|
I don’t see how the newly added test is improving coverage. These test utils should be used in the context of actual changes. |
144f4ec to
15ad98f
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
15ad98f to
2d8c834
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
250f1d7 to
a6b91e0
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
|
clang-tidy review says "All clean, LGTM! 👍" |
a6b91e0 to
4ceb994
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
Moved 1D helpers from stl-cmath.cpp to shared TestUtils.h to kill duplication. Added multi-var central-FD helpers like fd_gradient and dot for independent checking. Added DotProductIdentity.cpp harness to test forward vs reverse vs FD agreement on multi-variable targets under both default and -enable-ua paths. This establishes a baseline gradient testing harness to catch regressions in upcoming activity-analysis PRs.
4ceb994 to
94ee4f3
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
Uh oh!
There was an error while loading. Please reload this page.