Skip to content

Commit 3cafb89

Browse files
committed
Update changelog
1 parent a90e6f5 commit 3cafb89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
`DynamicPPL.TestUtils.AD.run_ad` now links the VarInfo by default.
1010
To disable this, pass the `linked=false` keyword argument.
1111

12+
If the value or gradient calculated is not the same as the one calculated by the AD backend, instead of a test failing, the function now throws an `DynamicPPL.TestUtils.AD.ADIncorrectException`.
13+
The fields of this exception contain the expected and actual gradient, which you can inspect to see what went wrong.
14+
This also means that if you are using this function in a test suite, you need to use `@test run_ad(...) isa Any` rather than just `@test run_ad(...)`.
15+
1216
### VarInfo constructors
1317

1418
`VarInfo(vi::VarInfo, values)` has been removed. You can replace this directly with `unflatten(vi, values)` instead.

0 commit comments

Comments
 (0)