File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,6 @@ into a `Vector{Float64}` with a `ForwardDiff.Dual` or similar tracer type, for e
5757those use `Accessors.@set` under the hood, which also does the promotion for you.)
5858"""
5959get_param_eltype (:: AbstractInitStrategy ) = Any
60- function get_param_eltype (strategy:: InitFromParams{<:VectorWithRanges} )
61- return eltype (strategy. params. vect)
62- end
63- function get_param_eltype (
64- strategy:: InitFromParams{<:Union{AbstractDict{<:VarName},NamedTuple}}
65- )
66- return infer_nested_eltype (typeof (strategy. params))
67- end
6860
6961"""
7062 InitFromPrior()
@@ -193,6 +185,11 @@ function init(
193185 init (rng, vn, dist, p. fallback)
194186 end
195187end
188+ function get_param_eltype (
189+ strategy:: InitFromParams{<:Union{AbstractDict{<:VarName},NamedTuple}}
190+ )
191+ return infer_nested_eltype (typeof (strategy. params))
192+ end
196193
197194"""
198195 RangeAndLinked
@@ -261,6 +258,9 @@ function init(
261258 end
262259 return (@view vr. vect[range_and_linked. range]), transform
263260end
261+ function get_param_eltype (strategy:: InitFromParams{<:VectorWithRanges} )
262+ return eltype (strategy. params. vect)
263+ end
264264
265265"""
266266 InitContext(
You can’t perform that action at this time.
0 commit comments