You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a Sysimage using PackageCompiler to do data analysis without the TTFP issues.
When I include the following in the precompile exerciser script, it borks:
@model function foo(data)
n ~ Gamma(3,2)
foo ~ arraydist([Gamma(3,2) for i in 1:length(data)])
bar ~ MvNormal([0.0 for i in 1:length(data)],1.0)
baz ~ Normal(3.0,2.0)
end
Turing.setadbackend(:reversediff)
Turing.setrdcache(true)
Turing.emptyrdcache()
ch = sample(foo(collect(1:100)),NUTS(1000,.8),2000)
summarize(ch)
Turing.setadbackend(:zygote)
ch = sample(foo(collect(1:100)),NUTS(1000,.8),2000)
summary(ch)
The first sample using the reversediff backend works fine, but it crashes out on the second sample call using the Zygote backend with a backtrace like this:
It seems like there are a lot of leaking types, a Tangent should not be constructed with a RefValue as in the stacktrace. Otherwise, accumulation should support named tuples and tangents. Maybe a better reduced mwe could be accum(::NamedTuple, ::Tangent) to see if that errors.
Yeah, this issue just poised everything I was working on. Anybody got around this by rolling back? Not sure whether rolling back Zygote or ChainRules works
I'm building a Sysimage using PackageCompiler to do data analysis without the TTFP issues.
When I include the following in the precompile exerciser script, it borks:
The first sample using the reversediff backend works fine, but it crashes out on the second sample call using the Zygote backend with a backtrace like this:
The text was updated successfully, but these errors were encountered: