Show / Hide Table of Contents

    Method ofArray

    val ofArray: 'T [] -> Tensor<'T>

    Creates a one-dimensional tensor copying the specified data.

    Declaration
    val ofArray: data:'T [] -> Tensor<'T>
    Parameters
    Type Name Description
    'T [] data

    The data array to use.

    Returns
    Type Description
    Tensor<'T>

    A tensor filled with the values from data.

    Type Parameters
    Name Description
    'T

    The type of the data.

    Remarks

    The data is copied.

    See Also
    val usingArray: 'T [] -> Tensor<'T>
    val ofArray2D: 'T [,] -> Tensor<'T>
    val ofArray3D: 'T [,,] -> Tensor<'T>
    val ofArray4D: 'T [,,,] -> Tensor<'T>
    Back to top Generated by DocFX