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.
2 parents cec0486 + 33c54dc commit 262f96fCopy full SHA for 262f96f
src/modeling_library/mixture.jl
@@ -178,7 +178,7 @@ Gen.is_discrete(dist::HeterogeneousMixture) = dist.is_discrete
178
179
const MIXTURE_WRONG_NUM_COMPONENTS_ERR = "the length of the weights vector does not match the number of mixture components"
180
181
-function HeterogeneousMixture(distributions::Vector{Distribution{T}}) where {T}
+function HeterogeneousMixture(distributions::Vector{D}) where {T, D <: Distribution{T}}
182
_has_output_grad = true
183
_has_argument_grads = Bool[true] # weights
184
_is_discrete = true
0 commit comments