Skip to content

Commit 27ec78f

Browse files
committed
No kwargs being passed that arent needed
1 parent ea88e55 commit 27ec78f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/caches/abstractbeliefpropagationcache.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,7 @@ function updated_message(
285285
end
286286

287287
function update_message(
288-
message_update_alg::Algorithm,
289-
bpc::AbstractBeliefPropagationCache,
290-
edge::PartitionEdge;
288+
message_update_alg::Algorithm, bpc::AbstractBeliefPropagationCache, edge::PartitionEdge;
291289
)
292290
return set_message(bpc, edge, updated_message(message_update_alg, bpc, edge))
293291
end
@@ -342,9 +340,7 @@ function update(alg::Algorithm, bpc::AbstractBeliefPropagationCache)
342340
end
343341
for i in 1:alg.kwargs.maxiter
344342
diff = compute_error ? Ref(0.0) : nothing
345-
bpc = update_one_iteration(
346-
alg, bpc, alg.kwargs.edge_sequence; (update_diff!)=diff
347-
)
343+
bpc = update_one_iteration(alg, bpc, alg.kwargs.edge_sequence; (update_diff!)=diff)
348344
if compute_error && (diff.x / length(alg.kwargs.edge_sequence)) <= alg.kwargs.tol
349345
if alg.kwargs.verbose
350346
println("BP converged to desired precision after $i iterations.")

0 commit comments

Comments
 (0)