Learning Conditional Generative Models for Phase Retrieval