def _InitAttention(self, theta, encoder_outputs):
    """Intializes attention and returns a NestedMap with those values."""
    packed_src = self.atten.InitForSourcePacked(
        theta.atten,
        encoder_outputs.encoded,  # src
        encoder_outputs.encoded,  # context
        encoder_outputs.padding)
    self.contextualizer.InitAttention(theta.contextualizer, packed_src)
    return packed_src
Intializes attention and returns a NestedMap with those values.
contrib/lingvo-patched-decoder.py