Skip to content

Commit e07488e

Browse files
author
Rik Huijzer
authored
Switch to Libtask.TapedTask (#1778)
* Switch to Libtask.TapedTask * Set version to 0.20.3
1 parent 9d3be02 commit e07488e

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Turing"
22
uuid = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
3-
version = "0.20.2"
3+
version = "0.20.3"
44

55
[deps]
66
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"

docs/src/using-turing/advanced.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,5 +191,4 @@ model = Turing.Model(modelf, (x = [1.5, 2.0],))
191191

192192
## Task Copying
193193

194-
195-
Turing [copies](https://github.com/JuliaLang/julia/issues/4085) Julia tasks to deliver efficient inference algorithms, but it also provides alternative slower implementation as a fallback. Task copying is enabled by default. Task copying requires us to use the `CTask` facility which is provided by [Libtask](https://github.com/TuringLang/Libtask.jl) to create tasks.
194+
Turing [copies](https://github.com/JuliaLang/julia/issues/4085) Julia tasks to deliver efficient inference algorithms, but it also provides alternative slower implementation as a fallback. Task copying is enabled by default. Task copying requires us to use the `TapedTask` facility which is provided by [Libtask](https://github.com/TuringLang/Libtask.jl) to create tasks.

src/essential/container.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ function AdvancedPS.reset_logprob!(f::TracedModel)
7171
return
7272
end
7373

74-
function Libtask.CTask(model::TracedModel)
75-
return Libtask.CTask(model.evaluator[1], model.evaluator[2:end]...)
74+
function Libtask.TapedTask(model::TracedModel)
75+
return Libtask.TapedTask(model.evaluator[1], model.evaluator[2:end]...)
7676
end
7777

78-
function Libtask.CTask(model::TracedModel, ::Random.AbstractRNG)
79-
return Libtask.CTask(model)
80-
end
78+
function Libtask.TapedTask(model::TracedModel, ::Random.AbstractRNG)
79+
return Libtask.TapedTask(model)
80+
end

0 commit comments

Comments
 (0)