VAE using CNN on CIFAR10 dataset

Can anyone pls tell me why my loss is coming negative. And my output is very bad…any suggestion.

link of code:- Google Colab