TensorBFS / TensorInference.jl

Probabilistic inference using contraction of tensor networks
https://tensorbfs.github.io/TensorInference.jl/
MIT License
18 stars 2 forks source link

Removing inplace operations #49

Closed GiggleLiu closed 1 year ago

GiggleLiu commented 1 year ago

Now we have set_evidence! and set_query! to modify a loaded instance in memory. I think this is not a very good practise because it is hard to track inplace modifications to an object. We should remove obsvars, obsvals and queryvars from the uai instance.