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
Describe the bug
The new support for batched sampling introduced a local function multi_obs_potential. This will be cached as posterior sampler in self making it not saveable using pickle.
Expected behavior
Should be saveable as the rest of the posteriors.
Possible fixes:
overwrite get_state and set self.posterior._posterior_sampler = None (remove cached object)
not using local functions.
The text was updated successfully, but these errors were encountered:
Describe the bug
The new support for batched sampling introduced a local function multi_obs_potential. This will be cached as posterior sampler in
self
making it not saveable using pickle.Expected behavior
Should be saveable as the rest of the posteriors.
Possible fixes:
self.posterior._posterior_sampler = None
(remove cached object)The text was updated successfully, but these errors were encountered: