tf.keras.ops.transpose

Returns a tensor with axes transposed.

Main aliases

tf.keras.ops.numpy.transpose

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.