dotnet / dotnet/infer

Memory leak issue with InferenceEngine for Bayesian network

Open
#480 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.6k
Forks
240
PR merge metrics
No merged PRs in 30d

Description

My current code structure is to create a Static InferenceEngine instance.
And then, In a for-loop:
I initiate several variables with: Variable.Bernoulli(n).Named("xxx") as "Prior".
Then I set soft evidence with: Variable.ConstrainEqualRandom
Finally, I do the infer with engine.infer()

In this approach, I come across a memory leak issue where I observed memory usage increase over iterations.
Am I using it correctly? Is there any solution to this one?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.