cupy.transpose

cupy.transpose(a, axes=None)[source]

Permutes the dimensions of an array.

Parameters
  • a (cupy.ndarray) – Array to permute the dimensions.

  • axes (tuple of ints) – Permutation of the dimensions. This function reverses the shape by default.

Returns

A view of a that the dimensions are permuted.

Return type

cupy.ndarray