Given an image generated by a GAN it recovers its latent vector.
You can read the blog post here: Blog post
The algorithm was implemented following the paper: Precise Recovery of Latent Vectors from Generative Adversarial Networks by Zachary C. Lipton, and Subarna Tripathi
Remember to specify a folder for tfhub
for which you have privileges. The model will be downloaded there.