Skip to content

Commit d58c3f4

Browse files
committed
Update docs and examples .toml
1 parent 5ec0710 commit d58c3f4

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
55

66
[compat]
77
Documenter = "1.10.0"
8-
ITensorNetworks = "0.13.0"
8+
ITensorNetworks = "0.14.0"
99
Literate = "2.20.1"

examples/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
ITensorNetworks = "2919e153-833c-4bdc-8836-1ea460a35fc7"
33

44
[compat]
5-
ITensorNetworks = "0.13.2"
5+
ITensorNetworks = "0.14.0"

src/caches/abstractbeliefpropagationcache.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,14 @@ Currently we send the full message tensor data struct to update for each edge_gr
316316
mts relevant to that group.
317317
"""
318318
function update_iteration(
319-
alg::Algorithm,
319+
alg::Algorithm"bp",
320320
bpc::AbstractBeliefPropagationCache,
321321
edge_groups::Vector{<:Vector{<:PartitionEdge}};
322+
(update_diff!)=nothing,
322323
)
323324
new_mts = empty(messages(bpc))
324325
for edges in edge_groups
325-
bpc_t = update_iteration(alg.kwargs.message_update_alg, bpc, edges)
326+
bpc_t = update_iteration(alg.kwargs.message_update_alg, bpc, edges; (update_diff!))
326327
for e in edges
327328
set!(new_mts, e, message(bpc_t, e))
328329
end
@@ -333,7 +334,7 @@ end
333334
"""
334335
More generic interface for update, with default params
335336
"""
336-
function update(alg::Algorithm, bpc::AbstractBeliefPropagationCache)
337+
function update(alg::Algorithm"bp", bpc::AbstractBeliefPropagationCache)
337338
compute_error = !isnothing(alg.kwargs.tol)
338339
if isnothing(alg.kwargs.maxiter)
339340
error("You need to specify a number of iterations for BP!")

0 commit comments

Comments
 (0)