def init_state_from_encoder(self, encoder_outputs, encoder_valid_length=None):
raise NotImplementedError<EOL>
r"""Generates the initial decoder states based on the encoder outputs.

        Parameters
        ----------
        encoder_outputs : list of NDArrays
        encoder_valid_length : NDArray or None

        Returns
        -------
        decoder_states : list