Show / Hide Table of Contents

    Method ofList

    val ofList: 'T list -> Tensor<'T>

    Creates a one-dimensional tensor from the specified list.

    Declaration
    val ofList: data:'T list -> Tensor<'T>
    Parameters
    Type Name Description
    'T list data

    The data to fill the tensor with.

    Returns
    Type Description
    Tensor<'T>

    A tensor containing values from the specifed list.

    Type Parameters
    Name Description
    'T

    The type of the data.

    See Also
    val ofSeq: seq<'T> -> Tensor<'T>
    val ofList2D: 'T list list -> Tensor<'T>
    val toList: Tensor<'T> -> 'T list
    Back to top Generated by DocFX