Redundant computations with multilevel models and Slice sampler

I think some samplers (if not slice) may be able to do this by using shared variables. They internally call make_shared_replacements or something like that. I am not quite sure which samplers do that. In those cases I think Aesara won’t recompute the nodes that depend on the shared variables that have not changed.

1 Like