The PyTorch implementation of Binary Gating Unit from the paper Predicting distributions with Linearizing Belief Networks.
https://arxiv.org/abs/1511.05622
@inproceedings{dauphing15predicting,
title = {Predicting distributions with Linearizing Belief Networks},
author = {Yann N. Dauphin and David Grangier},
booktitle = {International Conference on Learning Representations},
year = {2016}
}