tensor4all / TensorCrossInterpolation.jl

https://tensor4all.github.io/TensorCrossInterpolation.jl/
MIT License
13 stars 0 forks source link

Bug in ThreadBatchEvaluator #25

Closed shinaoka closed 1 month ago

shinaoka commented 1 month ago

The following code does not run:

import TensorCrossInterpolation as TCI

function f(x)
    sleep(1e-3)
    return sum(x)
end

L = 20
localdims = fill(2, L)
parf = TCI.ThreadedBatchEvaluator{Float64}(f, localdims)

tci, ranks, errors = TCI.crossinterpolate2(Float64, parf, localdims)
ERROR: LoadError: type ThreadedBatchEvaluator has no field sitetensors
Stacktrace:
  [1] getproperty
    @ ./Base.jl:37 [inlined]
  [2] sitetensors(tt::TensorCrossInterpolation.ThreadedBatchEvaluator{Float64})
    @ TensorCrossInterpolation ~/git/TensorCrossInterpolation.jl/src/abstracttens