Skip to content

Commit

Permalink
Move loglikelihood test from Turing to DPPL
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Nov 29, 2024
1 parent b651b74 commit 356a787
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ is_typed_varinfo(varinfo::DynamicPPL.SimpleVarInfo{<:NamedTuple}) = true
end
end

@testset "DynamicPPL#684: threadsafe evaluation with multiple types" begin
@model function multiple_types(x)
ns ~ filldist(Normal(0, 2.0), 3)
m ~ Uniform(0, 1)
return x ~ Normal(m, 1)
end
model = multiple_types(1)
chain = make_chain_from_prior(model, 10)
loglikelihood(model, chain)
logprior(model, chain)
logjoint(model, chain)
end

@testset "rng" begin
model = gdemo_default

Expand Down

0 comments on commit 356a787

Please sign in to comment.