Skip to content

Commit 1b6e5fc

Browse files
committed
update Turing and AHMC compat
1 parent 5177de8 commit 1b6e5fc

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1111

1212
[compat]
1313
AbstractMCMC = "~0.1"
14-
AdvancedHMC = "0.2.15"
14+
AdvancedHMC = "0.2.20"
1515
Bijectors = "0.5.2"
1616
Distributions = "0.22"
1717
DistributionsAD = "0.2"

test/Turing/core/compat/zygote.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ function gradient_logp_reverse(
1111
model::Model,
1212
sampler::AbstractSampler = SampleFromPrior(),
1313
)
14-
T = typeof(getlogp(vi))
1514

1615
# Specify objective function.
1716
function f(θ)

test/Turing/inference/hmc.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ function callback(
585585
cb::HMCCallback;
586586
kwargs...
587587
)
588-
AHMC.pm_next!(cb.p, t.stat, iteration, spl.state.h.metric)
588+
AHMC.pm_next!(cb.p, (iteration=iteration, t.stat..., mass_matrix=spl.state.h.metric))
589589
end
590590

591591
function init_callback(

0 commit comments

Comments
 (0)