Because the SCVI model does not include a method named get_latents(). The correct method is called get_latent_representation()
get_latents()
get_latent_representation()
Reference https://docs.scvi-tools.org/en/stable/api/reference/scvi.model.SCVI.html