Seol mar théacs é seo: Faithful inversion of generative models for effective amortized inference