You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue with the way we handle inner state container in PG and PGAS. For a model like this:
mutable struct Model
States::Vector{Float64}end
PGAS would require the constructor of Model to create an empty array and the sampler would push new states / values into it.
For PG, that's the opposite. We need to start with a pre-allocated array (like zeros(T, N)).
The text was updated successfully, but these errors were encountered:
There is an issue with the way we handle inner state container in
PG
andPGAS
. For a model like this:PGAS
would require the constructor ofModel
to create an empty array and the sampler would push new states / values into it.For
PG
, that's the opposite. We need to start with a pre-allocated array (likezeros(T, N)
).The text was updated successfully, but these errors were encountered: