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.
infer_nested_eltype
1 parent 7deaaab commit 699aa23Copy full SHA for 699aa23
src/fasteval.jl
@@ -126,7 +126,7 @@ function DynamicPPL.get_param_eltype(
126
if leaf_ctx isa FastEvalVectorContext
127
return eltype(leaf_ctx.params)
128
elseif leaf_ctx isa InitContext{<:Any,<:InitFromParams}
129
- return DynamicPPL.infer_nested_eltype(leaf_ctx.strategy.params)
+ return DynamicPPL.infer_nested_eltype(typeof(leaf_ctx.strategy.params))
130
elseif leaf_ctx isa InitContext{<:Any,<:Union{InitFromPrior,InitFromUniform}}
131
# No need to enforce any particular eltype here, since new parameters are sampled
132
return Any
0 commit comments