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
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,14 @@ Please see the API documentation for more details.
25
25
26
26
There is now also an `rng` keyword argument to help seed parameter generation.
27
27
28
-
Finally, instead of specifying `value_atol` and `grad_atol`, you can now specify `atol` and `rtol` which are used for both value and gradient.
28
+
Instead of specifying `value_atol` and `grad_atol`, you can now specify `atol` and `rtol` which are used for both value and gradient.
29
29
Their semantics are the same as in Julia's `isapprox`; two values are equal if they satisfy either `atol` or `rtol`.
30
30
31
+
Finally, the `ADResult` object returned by `run_ad` now has both `grad_time` and `primal_time` fields, which contain (respectively) the time it took to calculate the gradient of logp, and the time taken to calculate logp itself.
32
+
Times are reported in seconds.
33
+
Previously there was only a single `time_vs_primal` field which represented the ratio of these two.
34
+
You can of course access the same quantity by dividing `grad_time` by `primal_time`.
35
+
31
36
### `DynamicPPL.TestUtils.check_model`
32
37
33
38
You now need to explicitly pass a `VarInfo` argument to `check_model` and `check_model_and_trace`.
0 commit comments