# Gaussian Mixture via TFP layers

**URL:** <https://discuss.ai.google.dev/t/gaussian-mixture-via-tfp-layers/26814>\
**Category:** TensorFlow\
**Tags:** tf-probability, models\
**Created:** [May 11, 2023, 6:18am UTC](https://discuss.ai.google.dev/t/gaussian-mixture-via-tfp-layers/26814 "2023-05-11T06:18:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aka](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/aka/32/15267_2.png) [@Aka](https://discuss.ai.google.dev/u/Aka)\
**Post date:** [May 11, 2023, 6:18am UTC](https://discuss.ai.google.dev/t/gaussian-mixture-via-tfp-layers/26814/1 "2023-05-11T06:18:26Z")

</div>

Hello TF Community! 🙂 First time poster and I’d really appreciate your help!

I’ve been following this excellent blog [post](https://blog.tensorflow.org/2019/03/variational-autoencoders-with.html) about VAE and the use of Tensorflow probability.

However, even after reading the documentation, it is not entirely clear to me what the final probability layer outputs?

 ![image](https://d3qe71uytubmmx.cloudfront.net/original/2X/f/fcfaa9f9da4de7666820a87c334baf49233420d5.png)

Also, I am quite interested if it was possible to use TFP for Gaussian Mixture models that would be integrated with VAE. That is, using prior MixtureSameFamily and for the final layer? It seems there is not much research around this.

Maybe someone could help me out 🙂
