Skip to content

Commit def2206

Browse files
committed
Update to remote changes
1 parent aa082fa commit def2206

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/caches/beliefpropagationcache.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,22 @@ function environment(bpc::BeliefPropagationCache, verts::Vector; kwargs...)
9494
return vcat(messages, central_tensors)
9595
end
9696

97-
function region_scalar(bp_cache::BeliefPropagationCache, pv::PartitionVertex;)
97+
function region_scalar(
98+
bp_cache::BeliefPropagationCache,
99+
pv::PartitionVertex;
100+
)
98101
incoming_mts = incoming_messages(bp_cache, [pv])
99102
local_state = factors(bp_cache, pv)
100103
ts = vcat(incoming_mts, local_state)
101-
sequence = contraction_sequence(ts; alg="optimal")
104+
sequence = contraction_sequence(ts; alg = "optimal")
102105
return contract(ts; sequence)[]
103106
end
104107

105108
function region_scalar(
106109
bp_cache::BeliefPropagationCache,
107110
pe::PartitionEdge;
108-
contract_kwargs=(; sequence="automatic"),
109111
)
110112
ts = vcat(message(bp_cache, pe), message(bp_cache, reverse(pe)))
111-
sequence = contraction_sequence(ts; alg="optimal")
113+
sequence = contraction_sequence(ts; alg = "optimal")
112114
return contract(ts; sequence)[]
113115
end

0 commit comments

Comments
 (0)