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 0cc3e45 commit f8d6775Copy full SHA for f8d6775
test/ad.jl
@@ -145,7 +145,7 @@ function check_adtype(context::ADTypeCheckContext, vi::DynamicPPL.AbstractVarInf
145
# both of those give you sensible results for `get_param_eltype`.
146
param_eltype = DynamicPPL.get_param_eltype(vi, context)
147
valids = valid_eltypes(context)
148
- if !(param_eltype .<: valids)
+ if !(any(param_eltype .<: valids))
149
throw(IncompatibleADTypeError(valtype, adtype(context)))
150
end
151
0 commit comments