We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54691bf commit 632ab09Copy full SHA for 632ab09
src/sampler.jl
@@ -67,19 +67,6 @@ function AbstractMCMC.step(
67
return vi, nothing
68
end
69
70
-function default_varinfo(rng::Random.AbstractRNG, model::Model, sampler::AbstractSampler)
71
- return default_varinfo(rng, model, sampler, DefaultContext())
72
-end
73
-function default_varinfo(
74
- rng::Random.AbstractRNG,
75
- model::Model,
76
- sampler::AbstractSampler,
77
- context::AbstractContext,
78
-)
79
- init_sampler = initialsampler(sampler)
80
- return VarInfo(rng, model, init_sampler, context)
81
82
-
83
function AbstractMCMC.sample(
84
rng::Random.AbstractRNG,
85
model::Model,
@@ -100,7 +87,7 @@ function AbstractMCMC.step(
100
87
rng::Random.AbstractRNG, model::Model, spl::Sampler; initial_params=nothing, kwargs...
101
88
)
102
89
# Sample initial values.
103
- vi = default_varinfo(rng, model, spl)
90
+ vi = typed_varinfo(rng, model, initialsampler(spl), DefaultContext())
104
91
105
92
# Update the parameters if provided.
106
93
if initial_params !== nothing
0 commit comments