File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1024,13 +1024,14 @@ metadata field.
10241024For InitContext, it's quite different: because InitContext is responsible for supplying the
10251025parameters, we can avoid using `eltype(varinfo)` and instead query the parameters inside it.
10261026"""
1027- get_param_eltype (vi:: AbstractVarInfo , :: DefaultContext ) = eltype (vi)
1028- function get_param_eltype (vi:: AbstractVarInfo , ctx:: AbstractContext )
1027+ function get_param_eltype (vi:: AbstractVarInfo , ctx:: AbstractParentContext )
10291028 return get_param_eltype (vi, DynamicPPL. childcontext (ctx))
10301029end
1030+ get_param_eltype (vi:: AbstractVarInfo , :: AbstractContext ) = eltype (vi)
10311031function get_param_eltype (:: AbstractVarInfo , ctx:: InitContext )
10321032 return _get_strat_param_eltype (ctx. strategy)
10331033end
1034+
10341035function _get_strat_param_eltype (strategy:: InitFromParams{<:VectorWithRanges} )
10351036 return eltype (strategy. params. vect)
10361037end
You can’t perform that action at this time.
0 commit comments