def temporal_padding(x, padding=1):
    input_shape = x.shape
    output_shape = (input_shape[0],
                    input_shape[1] + 2 * padding,
                    input_shape[2])
    output = T.zeros(output_shape)
    return T.set_subtensor(output[:, padding:x.shape[1] + padding, :], x)
Find a predefined compound unit pattern.
dataset/ETHPy150Open sharadmv/deepx/deepx/backend/theano_backend.py/temporal_padding--crossover with--dataset/ETHPy150Open python-babel/babel/babel/units.py/_find_compound_unit