Skip to content

Commit 1e7e5d0

Browse files
committed
Fix bug average energy of Uninformative type
1 parent 21a315a commit 1e7e5d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nodes/predefined/uninformative.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ struct Uninformative end
44

55
@node Uninformative Stochastic [out]
66

7-
@average_energy Uninformative (q_out::Any,) = entropy(q_out)
7+
@average_energy Uninformative (q_out::Any,) = zero(paramfloattype(q_out))
88

99
function BayesBase.default_prod_rule(::Type{<:Uninformative}, ::Type{T}) where {T}
1010
return PreserveTypeProd(T)

0 commit comments

Comments
 (0)