Skip to content

Commit

Permalink
Fix #1780 (#1781)
Browse files Browse the repository at this point in the history
* Replace ctask with task

* Bump AdvancedPS
  • Loading branch information
devmotion authored Feb 21, 2022
1 parent e07488e commit c48acf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/essential/container.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

2 comments on commit c48acf8

@yebai
Copy link
Member

@yebai yebai commented on c48acf8 Feb 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/55156

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.20.4 -m "<description of version>" c48acf849d98987b136faacdeb1131116b40a58d
git push origin v0.20.4

Please sign in to comment.