Skip to content

Commit 2686fcc

Browse files
committed
fix more bugs
1 parent 637e4bc commit 2686fcc

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

benchmarks/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
1313
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
1414
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
1515
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
16+
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1617

1718
[sources]
1819
DynamicPPL = {path = "../"}
@@ -27,3 +28,4 @@ Mooncake = "0.4"
2728
PrettyTables = "2.4.0"
2829
ReverseDiff = "1.15.3"
2930
StableRNGs = "1"
31+
Statistics = "1.11.1"

benchmarks/benchmarks.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ using DynamicPPL.TestUtils.AD: run_ad, NoTest
33
using Chairmarks: @be
44
using PrettyTables: PrettyTables, ft_printf
55
using StableRNGs: StableRNG
6+
using Statistics: median
67

78
rng = StableRNG(23)
89

src/test_utils/ad.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ function run_ad(
308308
)
309309
(median_grad, median_primal)
310310
else
311-
nothing
311+
nothing, nothing
312312
end
313313

314314
return ADResult(

0 commit comments

Comments
 (0)