'Encodes an input sequence.
Args:
inputs: The inputs to encode. A float32 tensor of shape [B, T, ...].
sequence_length: The length of each input. An int32 tensor of shape [T].
Returns:
An `EncoderOutput` tuple containing the outputs and final state.'

@abc.abstractmethod
def encode(self, *args, **kwargs):

    raise NotImplementedError
