Skip to content

Commit 699aa23

Browse files
committed
Fix infer_nested_eltype invocation
1 parent 7deaaab commit 699aa23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fasteval.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function DynamicPPL.get_param_eltype(
126126
if leaf_ctx isa FastEvalVectorContext
127127
return eltype(leaf_ctx.params)
128128
elseif leaf_ctx isa InitContext{<:Any,<:InitFromParams}
129-
return DynamicPPL.infer_nested_eltype(leaf_ctx.strategy.params)
129+
return DynamicPPL.infer_nested_eltype(typeof(leaf_ctx.strategy.params))
130130
elseif leaf_ctx isa InitContext{<:Any,<:Union{InitFromPrior,InitFromUniform}}
131131
# No need to enforce any particular eltype here, since new parameters are sampled
132132
return Any

0 commit comments

Comments
 (0)