The latent variable z is sampled from the guide. The third SVI tutorial explains the computation in details.
z