Generative Modeling with Bayesian Sample Inference