Skip to content

Commit 8532375

Browse files
committed
Another Bijectors.jl compat bound bump (#457)
1 parent 0d82a65 commit 8532375

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DynamicPPL"
22
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
3-
version = "0.22.0"
3+
version = "0.22.1"
44

55
[deps]
66
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
@@ -24,7 +24,7 @@ ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444"
2424
AbstractMCMC = "2, 3.0, 4"
2525
AbstractPPL = "0.5.3"
2626
BangBang = "0.3"
27-
Bijectors = "0.11"
27+
Bijectors = "0.11, 0.12"
2828
ChainRulesCore = "0.9.7, 0.10, 1"
2929
ConstructionBase = "1"
3030
Distributions = "0.23.8, 0.24, 0.25"

test/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
2323
[compat]
2424
AbstractMCMC = "2.1, 3.0, 4"
2525
AbstractPPL = "0.5.1, 0.6"
26-
Bijectors = "0.11"
26+
Bijectors = "0.11, 0.12"
2727
Distributions = "0.25"
2828
DistributionsAD = "0.6.3"
2929
Documenter = "0.26.1, 0.27"
@@ -33,6 +33,6 @@ MCMCChains = "4.0.4, 5"
3333
MacroTools = "0.5.5"
3434
Setfield = "0.7.1, 0.8, 1"
3535
StableRNGs = "1"
36-
Tracker = "0.2.11"
36+
Tracker = "0.2.23"
3737
Zygote = "0.5.4, 0.6"
3838
julia = "1.6"

test/test_util.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ function test_model_ad(model, logp_manual)
1313
x = DynamicPPL.getall(vi)
1414

1515
# Log probabilities using the model.
16-
function logp_model(x)
17-
new_vi = VarInfo(vi, SampleFromPrior(), x)
18-
model(new_vi)
19-
return getlogp(new_vi)
20-
end
16+
= DynamicPPL.LogDensityFunction(model, vi)
17+
logp_model = Base.Fix1(LogDensityProblems.logdensity, ℓ)
2118

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

0 commit comments

Comments
 (0)