-
Notifications
You must be signed in to change notification settings - Fork 12
Description
In the extension for Libtask, AdvancedPS often accesses the task
field of a Libtask TapedTask
. I would like to know why this is done, and whether it is strictly necessary? See e.g.
AdvancedPS.jl/ext/AdvancedPSLibtaskExt.jl
Line 86 in 8b4b558
AdvancedPS.addreference!(newtrace.model.ctask.task, newtrace) |
AdvancedPS.jl/ext/AdvancedPSLibtaskExt.jl
Line 179 in 8b4b558
AdvancedPS.addreference!(trace.model.ctask.task, trace) # Do we need it here ? |
For context, I'm looking at reimplementing the TapedTask
-- see TuringLang/Libtask.jl#179 -- and my proposal doesn't actually contain a Julia Task
object anymore. I obviously need it to be compatible with this library, so if for some reason it's actually necessary to have a Julia Task
, I'll have to rethink my design, and officially make the task
field part of the public interface (I don't believe that it currently is).