Skip to content

Commit 4bbebb7

Browse files
committed
Bump deps
1 parent 63bb81f commit 4bbebb7

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

benchmarks/Project.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1919
DynamicPPL = {path = "../"}
2020

2121
[compat]
22-
ADTypes = "1.14.0"
23-
Chairmarks = "1.3.1"
24-
Distributions = "0.25.117"
22+
ADTypes = "1"
23+
Chairmarks = "1"
24+
Distributions = "0.25"
2525
DynamicPPL = "0.37"
2626
ForwardDiff = "0.10.38, 1"
2727
Mooncake = "0.4"
28-
PrettyTables = "2.4.0"
29-
ReverseDiff = "1.15.3"
28+
PrettyTables = "2"
29+
ReverseDiff = "1"
3030
StableRNGs = "1"
31-
Statistics = "1.11.1"
31+
Statistics = "1"

benchmarks/src/DynamicPPLBenchmarks.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export Models, to_backend, make_varinfo
1919
const SYMBOL_TO_BACKEND = Dict(
2020
:forwarddiff => ADTypes.AutoForwardDiff(),
2121
:reversediff => ADTypes.AutoReverseDiff(; compile=false),
22-
:mooncake => ADTypes.AutoMooncake(; config=nothing),
22+
:mooncake => ADTypes.AutoMooncake(),
2323
)
2424

2525
to_backend(x) = error("Unknown backend: $x")
@@ -37,8 +37,8 @@ Create a VarInfo for the given `model` using the selected varinfo type.
3737
Available varinfo choices:
3838
• `:untyped` → uses `DynamicPPL.untyped_varinfo(model)`
3939
• `:typed` → uses `DynamicPPL.typed_varinfo(model)`
40-
• `:simple_namedtuple` → uses `SimpleVarInfo{Float64}(model())`
41-
• `:simple_dict` → builds a `SimpleVarInfo{Float64}` from a Dict (pre-populated with the model’s outputs)
40+
• `:simple_namedtuple` → builds a `SimpleVarInfo{Float64}(::NamedTuple)`
41+
• `:simple_dict` → builds a `SimpleVarInfo{Float64}(::Dict)`
4242
4343
The VarInfo is always linked.
4444
"""
@@ -50,7 +50,9 @@ function make_varinfo(model::Model, varinfo_choice::Symbol)
5050
elseif varinfo_choice == :typed
5151
DynamicPPL.typed_varinfo(rng, model)
5252
elseif varinfo_choice == :simple_namedtuple
53-
SimpleVarInfo{Float64}(model(rng))
53+
vi = DynamicPPL.typed_varinfo(rng, model)
54+
vals = DynamicPPL.values_as(vi, NamedTuple)
55+
SimpleVarInfo{Float64}(vals)
5456
elseif varinfo_choice == :simple_dict
5557
vi = DynamicPPL.typed_varinfo(rng, model)
5658
vals = DynamicPPL.values_as(vi, Dict)

0 commit comments

Comments
 (0)