diff --git a/src/nodes/predefined/uninformative.jl b/src/nodes/predefined/uninformative.jl index 6eee1376e..a915b0ebe 100644 --- a/src/nodes/predefined/uninformative.jl +++ b/src/nodes/predefined/uninformative.jl @@ -4,7 +4,7 @@ struct Uninformative end @node Uninformative Stochastic [out] -@average_energy Uninformative (q_out::Any,) = entropy(q_out) +@average_energy Uninformative (q_out::Any,) = zero(paramfloattype(q_out)) function BayesBase.default_prod_rule(::Type{<:Uninformative}, ::Type{T}) where {T} return PreserveTypeProd(T)