generative models as distributions of functions