Skip to content

Commit

Permalink
fix caches
Browse files Browse the repository at this point in the history
  • Loading branch information
lpawela committed Mar 6, 2024
1 parent 99ca601 commit 937c494
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Graphs = "1.9"
LabelledGraphs = "0.4.4"
Memoization = "0.2"
MetaGraphs = "0.7"
ProgressMeter = "1.10"
SpinGlassNetworks = "1"
SpinGlassTensors = "1"
Statistics = "1.7.0"
Expand Down
1 change: 0 additions & 1 deletion src/SpinGlassEngine.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ using SpinGlassNetworks
using CUDA
using TensorOperations
using TensorCast
using NNlib, NNlibCUDA
using MetaGraphs
using Memoization
using LinearAlgebra, MKL
Expand Down
3 changes: 2 additions & 1 deletion src/contractor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,8 @@ Note: The memoization ensures that the dressed MPS is only constructed once for
) where T <: AbstractStrategy

ψ = mps(ctr, i+1, indβ)
delete!(Memoization.caches[mps], ((ctr, i+1, indβ), ()))
caches = Memoization.find_caches(mps)
delete!(caches[mps], ((ctr, i+1, indβ), ()))
if ctr.onGPU
ψ = move_to_CUDA!(ψ)
end
Expand Down

0 comments on commit 937c494

Please sign in to comment.