From c48acf849d98987b136faacdeb1131116b40a58d Mon Sep 17 00:00:00 2001 From: David Widmann Date: Mon, 21 Feb 2022 20:57:41 +0100 Subject: [PATCH] Fix #1780 (#1781) * Replace ctask with task * Bump AdvancedPS --- Project.toml | 4 ++-- src/essential/container.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index 813b062b6..bd9114745 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Turing" uuid = "fce5fe82-541a-59a6-adf8-730c64b5f9a0" -version = "0.20.3" +version = "0.20.4" [deps] AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001" @@ -37,7 +37,7 @@ ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444" AbstractMCMC = "3.2" AdvancedHMC = "0.3.0" AdvancedMH = "0.6" -AdvancedPS = "0.3.3" +AdvancedPS = "0.3.4" AdvancedVI = "0.1" BangBang = "0.3" Bijectors = "0.8, 0.9, 0.10" diff --git a/src/essential/container.jl b/src/essential/container.jl index 761e8d947..26200879d 100644 --- a/src/essential/container.jl +++ b/src/essential/container.jl @@ -42,12 +42,12 @@ end function Base.copy(trace::AdvancedPS.Trace{<:TracedModel}) f = trace.f newf = TracedModel(f.model, f.sampler, deepcopy(f.varinfo)) - return AdvancedPS.Trace(newf, copy(trace.ctask)) + return AdvancedPS.Trace(newf, copy(trace.task)) end function AdvancedPS.advance!(trace::AdvancedPS.Trace{<:TracedModel}) DynamicPPL.increment_num_produce!(trace.f.varinfo) - score = consume(trace.ctask) + score = consume(trace.task) if score === nothing return else