tf.keras.backend.permute_dimensions

tf.keras.backend.permute_dimensions(
    x,
    pattern
)

Defined in tensorflow/python/keras/_impl/keras/backend.py.

Permutes axes in a tensor.

Arguments:

  • x: Tensor or variable.
  • pattern: A tuple of dimension indices, e.g. (0, 2, 1).

Returns:

A tensor.