TensorFlow 2.0 Beta is available Learn more

tf.keras.backend.permute_dimensions

TensorFlow 2.0 version View source on GitHub

Permutes axes in a tensor.

Aliases:

  • tf.compat.v1.keras.backend.permute_dimensions
  • tf.compat.v2.keras.backend.permute_dimensions
tf.keras.backend.permute_dimensions(
    x,
    pattern
)

Arguments:

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

Returns:

A tensor.