dpnp.tensor.permute_dims¶
- dpnp.tensor.permute_dims(X, /, axes)[source]¶
Permute the axes (dimensions) of an array; returns the permuted array as a view.
- Parameters:
x (usm_ndarray) -- Input array.
axes (tuple of ints) -- Tuple containing permutation of (0,1,...,N-1) where N is the number of axes (dimensions) of x.
- Returns:
out -- An array with permuted axes. The returned array has the same data type as x, is created on the same device as x and has the same USM allocation type as x.
- Return type: