Show / Hide Table of Contents

    Method ones

    val ones: int64 list -> Tensor<'T>

    Creates a new tensor filled with ones (1).

    Declaration
    val ones: shape:int64 list -> Tensor<'T>
    Parameters
    Type Name Description
    int64 list shape

    The shape of the new tensor.

    Returns
    Type Description
    Tensor<'T>

    The new tensor.

    Type Parameters
    Name Description
    'T

    The data type of the new tensor.

    See Also
    static member ones: ITensorDevice -> int64 list -> Tensor<'T>
    Back to top Generated by DocFX