Learning a 1-layer conditional generative model in total variation