Show / Hide Table of Contents

    Method permuteAxes

    static member permuteAxes: int list -> Tensor<'T> -> Tensor<'T>

    Permutes the axes as specified.

    Declaration
    static member permuteAxes: permut:int list -> a:Tensor<'T> -> Tensor<'T>
    Parameters
    Type Name Description
    int list permut

    The permutation to apply to the dimensions of tensor.

    Tensor<'T> a

    The tensor to operate on.

    Returns
    Type Description
    Tensor<'T>

    The tensor with the dimensions permuted.

    Remarks

    Each entry in the specified permutation specifies the new position of the corresponding axis, i.e. to which position the axis moves.

    A view of the original tensor is returned and the storage is shared. Modifications done to the returned tensor will affect the original tensor.

    Examples
     let a = HostTensor.zeros [0L; 11L; 22L; 33L; 44L]
     let b = Tensor.permuteAxes [3; 2; 4; 1; 0] a // b.Shape = [44L; 33L; 11L; 0L; 22L]
    See Also
    static member swapDim: int -> int -> Tensor<'T> -> Tensor<'T>
    member T: unit -> Tensor<'T>
    Back to top Generated by DocFX