Closed tsh56 closed 6 years ago
I can't replicate this here (Python 3.6 on macOS).
I just tested with python 3.6.3 on macOS. The output was "mcmc still exists" meaning that the object was not garbage collected even though all local references foo, model, and mcmc have been deleted.
I get no printed message, so I cannot replicate what you see.
Are you on current master?
The sample function attaches traces which introduces a circular reference means these object rely on gc to be freed. Unfortunately a numpy.array is part of the circular reference, so we are hitting this issue.