def permute_dimensions(x, pattern):
    pattern = tuple(pattern)
    return x.dimshuffle(pattern)
Transpose dimensions.
dataset/ETHPy150Open sharadmv/deepx/deepx/backend/theano_backend.py/permute_dimensions