We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ADTypes.AutoMooncake(; config=nothing)
Initialising ADTypes.AutoMooncake(; config=nothing) doesn't seem to use a config of Mooncake.Config() by default.
Mooncake.Config()
The following MWE uses a feature branch of Turing.jl (TuringLang/Turing.jl#2341):
using Turing import Mooncake backend = Turing.AutoMooncake(; config=nothing) # reexported from ADTypes @model f() = x ~ Normal(0, 1) sample(f(), HMC(0.1, 3; adtype=backend), 10) # works with backend = Turing.AutoMooncake(; config=Mooncake.Config())
The error:
ERROR: type Nothing has no field debug_mode Stacktrace: [1] getproperty(x::Nothing, f::Symbol) @ Base ./Base.jl:37 [2] ADgradient(x::AutoMooncake{…}, ℓ::LogDensityFunction{…}) @ MooncakeLogDensityProblemsADExt ~/.julia/packages/Mooncake/eEGqO/ext/MooncakeLogDensityProblemsADExt.jl:63 [3] ADgradient(ℓ::LogDensityFunction{DynamicPPL.TypedVarInfo{…}, DynamicPPL.Model{…}, DynamicPPL.SamplingContext{…}}) @ Turing.Inference ~/ppl/lib/src/mcmc/Inference.jl:154 [4] initialstep(rng::Random.TaskLocalRNG, model::DynamicPPL.Model{…}, spl::DynamicPPL.Sampler{…}, vi_original::DynamicPPL.TypedVarInfo{…}; initial_params::Nothing, nadapts::Int64, kwargs::@Kwargs{}) @ Turing.Inference ~/ppl/lib/src/mcmc/hmc.jl:159 [...]
which points to at least this:
Mooncake.jl/ext/MooncakeLogDensityProblemsADExt.jl
Lines 61 to 72 in 942eead
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Initialising
ADTypes.AutoMooncake(; config=nothing)
doesn't seem to use a config ofMooncake.Config()
by default.The following MWE uses a feature branch of Turing.jl (TuringLang/Turing.jl#2341):
The error:
which points to at least this:
Mooncake.jl/ext/MooncakeLogDensityProblemsADExt.jl
Lines 61 to 72 in 942eead
The text was updated successfully, but these errors were encountered: