Pergunta de entrevista da empresa EY

How to retrieve the latent representation given a trained generator and the corresponding image?