Skip to content

Commit 51a26b2

Browse files
committed
Fix changelog
1 parent 3e6b2db commit 51a26b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

HISTORY.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
`DynamicPPL.TestUtils.AD.run_ad` now links the VarInfo by default.
1010
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(...)`.
1114

1215
### VarInfo constructors
1316

0 commit comments

Comments
 (0)