':type ntimes: bool
:param ntimes: If the last state needs to be repeated `n` times
:type n: int, theano constant, None
:param n: how many times the last state is repeated'

def __init__(self, ntimes=False, n=TT.constant(0)):

    self.ntimes = ntimes
    self.n = n
    super(LastState, self).__init__(0, 0, None)
