def repeat(x, n):
    tensors = [x] * n
    stacked = T.stack(*tensors)
    return stacked.dimshuffle((1, 0, 2))
Listen for state changed events and applies them.
dataset/ETHPy150Open sharadmv/deepx/deepx/backend/theano_backend.py/repeat--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/remote.py/StateMachine._state_changed_listener