-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to Libtask.TapedTask #1778
Conversation
Maybe you can bump the version in the PR? |
I've changed the status to draft so that this PR can be used for integration testing |
a6014ff
to
c10abfe
Compare
Can you merge once CI is done? I don't have rights here |
Sure, I'll merge when tests pass. |
Pull Request Test Coverage Report for Build 1871416769
💛 - Coveralls |
Codecov Report
@@ Coverage Diff @@
## master #1778 +/- ##
==========================================
+ Coverage 81.69% 81.70% +0.01%
==========================================
Files 24 24
Lines 1491 1492 +1
==========================================
+ Hits 1218 1219 +1
Misses 273 273
Continue to review full report at Codecov.
|
@@ -191,5 +191,4 @@ model = Turing.Model(modelf, (x = [1.5, 2.0],)) | |||
|
|||
## Task Copying | |||
|
|||
|
|||
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. | |||
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good. By the way, soon we can also remove the TArray
related docs since the new Libtask
can deep-copy heap-allocated objects - we still need to activate it. See https://github.com/TuringLang/Libtask.jl/blob/4a85b47756259c2778c4336c69b7abc0b61a0fb9/src/tapedfunction.jl#L309
In response to TuringLang/Libtask.jl#121 (comment):
Turing and AdvancedPS still rely on CTask so it is still needed currently. This PR will move to the new name.