Deep Generative Demand Learning for Newsvendor and Pricing