pub fn transpose<I, R, T, B, D>( tensor: &TensorAny<R, T, B, D>, axes: I, ) -> TensorView<'_, T, B, D>where D: DimAPI, I: TryInto<AxesIndex<isize>, Error = Error>, R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>,
Permutes the axes (dimensions) of an array x.
x
permute_dims