You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HISTORY.md
+3
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@
8
8
9
9
`DynamicPPL.TestUtils.AD.run_ad` now links the VarInfo by default.
10
10
To disable this, pass the `linked=false` keyword argument.
11
+
If the calculated value or gradient is incorrect, it also throws a `DynamicPPL.TestUtils.AD.ADIncorrectException` rather than a test failure.
12
+
This exception contains the actual and expected gradient so you can inspect it if needed; see the documentation for more information.
13
+
From a practical perspective, this means that if you need to add this to a test suite, you need to use `@test run_ad(...) isa Any` rather than just `run_ad(...)`.
0 commit comments