mixle.inference._advi module

Reusable ADVI core: fit a Gaussian variational posterior by reparameterized-MC SGVB (Adam).

Lives in mixle.inference (not mixle.ppl) so the core mixle.inference.advi facade and the optional mixle.ppl autograd layer share ONE implementation without mixle.inference depending upward on mixle.ppl. The optimizer is generic – it takes torch and a batched log-target callable and has no dependency on the PPL graph types – so it belongs in the core inference layer.