Closed nwy2010 closed 6 years ago
https://github.com/wiseodd/controlled-text-generation/blob/a09ad1d9272b9e40fc0084ad1779a6d44f07862d/ctextgen/model.py#L242
Why is the kl_loss calculated like this?
Hi, please refer to the VAE paper by Kingma & Welling, appendix B.
https://github.com/wiseodd/controlled-text-generation/blob/a09ad1d9272b9e40fc0084ad1779a6d44f07862d/ctextgen/model.py#L242
Why is the kl_loss calculated like this?