tf.keras.ops.transpose

Returns a tensor with axes transposed.

x Input tensor.
axes Sequence of integers. Permutation of the dimensions of x. By default, the order of the axes are reversed.

x with its axes permuted.