Skip to content

Commit

Permalink
restore the ability to have improper messages in CVI
Browse files Browse the repository at this point in the history
  • Loading branch information
bvdmitri committed Apr 11, 2024
1 parent d1a5c6a commit bab59aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/approximations/cvi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function prod(approximation::CVI, outbound, inbound)
optimizer_and_state, new_λ = cvi_update!(optimizer_and_state, new_λ, current_λ, current_∇)

# check whether updated natural parameters are proper
if isproper(NaturalParametersSpace(), T, new_λ, inbound_c) && enforce_proper_message(approximation.enforce_proper_messages, T, cache, new_λ, inbound_η, inbound_c)
if enforce_proper_message(approximation.enforce_proper_messages, T, cache, new_λ, inbound_η, inbound_c)
copyto!(current_λ, new_λ)
hasupdated = true
end
Expand Down

0 comments on commit bab59aa

Please sign in to comment.