Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "DynamicPPL"
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
version = "0.22.0"
version = "0.22.1"

[deps]
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
Expand All @@ -24,7 +24,7 @@ ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444"
AbstractMCMC = "2, 3.0, 4"
AbstractPPL = "0.5.3"
BangBang = "0.3"
Bijectors = "0.11"
Bijectors = "0.11, 0.12"
ChainRulesCore = "0.9.7, 0.10, 1"
ConstructionBase = "1"
Distributions = "0.23.8, 0.24, 0.25"
Expand Down
4 changes: 2 additions & 2 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
[compat]
AbstractMCMC = "2.1, 3.0, 4"
AbstractPPL = "0.5.1, 0.6"
Bijectors = "0.11"
Bijectors = "0.11, 0.12"
Distributions = "0.25"
DistributionsAD = "0.6.3"
Documenter = "0.26.1, 0.27"
Expand All @@ -33,6 +33,6 @@ MCMCChains = "4.0.4, 5"
MacroTools = "0.5.5"
Setfield = "0.7.1, 0.8, 1"
StableRNGs = "1"
Tracker = "0.2.11"
Tracker = "0.2.23"
Zygote = "0.5.4, 0.6"
julia = "1.6"
7 changes: 2 additions & 5 deletions test/test_util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ function test_model_ad(model, logp_manual)
x = DynamicPPL.getall(vi)

# Log probabilities using the model.
function logp_model(x)
new_vi = VarInfo(vi, SampleFromPrior(), x)
model(new_vi)
return getlogp(new_vi)
end
ℓ = DynamicPPL.LogDensityFunction(model, vi)
logp_model = Base.Fix1(LogDensityProblems.logdensity, ℓ)

# Check that both functions return the same values.
lp = logp_manual(x)
Expand Down