In this tutorial, we will introduce how to fix ValueError: Initializer for variable is from inside a control-flow construct, such as a loop or conditional when inheriting tensorflow RNNCell.
Zoneout is proposed in paper: Zoneout: Regularizing RNNs by Randomly Preserving Hidden Activations. It is also used in Tacotron 2. In this tutorial, we will introduce what it is and how to implement it using tensorflow.