Functional Generative Network