def METHOD_NAME(self, x: paddle.Tensor):
    """Get an initial state for decoding.
    Args:
        x (paddle.Tensor): The encoded feature tensor
    Returns: initial state
    """
    logp = self.ctc.log_softmax(x.unsqueeze(0))  # assuming batch_size = 1
    xlen = paddle.to_tensor([paddle.shape(logp)[1]])
    self.impl = CTCPrefixScorePD(logp, xlen, 0, self.eos)
    return None