Show / Hide Table of Contents

    Method ofSeq

    val ofSeq: seq<'T> -> Tensor<'T>

    Creates a one-dimensional tensor from the specified sequence.

    Declaration
    val ofSeq: data:seq<'T> -> Tensor<'T>
    Parameters
    Type Name Description
    seq<'T> data

    The data to fill the tensor with.

    Returns
    Type Description
    Tensor<'T>

    A tensor containing values from the specifed sequence.

    Type Parameters
    Name Description
    'T

    The type of the data.

    Remarks

    The sequence must be finite.

    See Also
    val ofSeqWithShape: int64 list -> seq<'T> -> Tensor<'T>
    val ofList: 'T list -> Tensor<'T>
    Back to top Generated by DocFX