

def permute_dimensions(x, pattern):
    'Permutes axes in a tensor.\n\n    # Arguments\n        pattern: should be a tuple of\n            dimension indices, e.g. (0, 2, 1).\n    '
    return tf.transpose(x, perm=pattern)

dataset/ETHPy150Open fchollet/keras/keras/backend/tensorflow_backend.py permute_dimensions/original