Show / Hide Table of Contents

    Method padRight

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

    Append a dimension of size one after the last dimension.

    Declaration
    static member padRight: 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.padRight a // b.Shape = [3L; 4L; 5L; 1L]
    See Also
    static member padLeft: Tensor<'T> -> Tensor<'T>
    static member insertAxis: int -> Tensor<'T> -> Tensor<'T>
    Back to top Generated by DocFX