Skip to content

Commit 51184bf

Browse files
committed
Add default for updated_message
1 parent 389f148 commit 51184bf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/caches/abstractbeliefpropagationcache.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,15 @@ function updated_message(
275275
return map(adapt(dtype), updated_messages)
276276
end
277277

278+
function updated_message(
279+
bpc::AbstractBeliefPropagationCache,
280+
edge::PartitionEdge;
281+
alg=default_message_update_alg(bpc),
282+
kwargs...,
283+
)
284+
return updated_message(set_default_kwargs(Algorithm(alg; kwargs...)), bpc, edge)
285+
end
286+
278287
function update_message(
279288
message_update_alg::Algorithm,
280289
bpc::AbstractBeliefPropagationCache,

0 commit comments

Comments
 (0)