Generative Models as Distributions of Functions