I noticed a memory leak while running my algorithm over all dataset in one job. After investigating, I think I have identified that it was due to memory built up after calling the get_linear_acquisition_model function.
I tried computing the forward projection of the linear model with the following options:
acq_linear = self._acq_models[i].get_linear_acquisition_model()
fwd = acq_linear.forward(self._x_one)
del acq_linear
fwd = self._acq_models[i].forward(self._x_one) - self._acq_models[i].get_constant_term()
The figure bellow shows the memory usage (after running a few dataset) of the two options. The purple one shows option one and the red one shows option 2.
Screenshot.2026-02-13.173404.png (view on web)—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@evgueni-ovtchinnikov how does get_linear_acquisition_model() handle shared ownership?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()