The gate takes v e and v r as inputs, and outputs as a weight α ∈ [0, 1], which linearly weights the two parts.
the gate is calculated as Equation 3, where σ is standard sigmoid function, W eg , W rg and b g are parameters.