Show / Hide Table of Contents

    Method cutLeft

    static member cutLeft: Tensor<'T> -> Tensor<'T>

    Removes the first dimension.

    Declaration
    static member cutLeft: a:Tensor<'T> -> Tensor<'T>
    Parameters
    Type Name Description
    Tensor<'T> a

    The tensor to operate on.

    Returns
    Type Description
    Tensor<'T>

    The resulting tensor.

    Remarks

    The operation returns a view of the original tensor and shares its storage. Modifications done to the returned tensor will affect the original tensor. Also, modifying the orignal tensor will affect the view.

    Examples
     let a = HostTensor.zeros [3L; 4L; 5L]
     let b = Tensor.cutLeft a // b.Shape = [4L; 5L]
    See Also
    static member cutRight: Tensor<'T> -> Tensor<'T>
    Back to top Generated by DocFX