Show / Hide Table of Contents

    Method scalar

    val scalar: 'T -> Tensor<'T>

    Creates a new zero-dimensional (scalar) tensor with the specified value.

    Declaration
    val scalar: value:'T -> Tensor<'T>
    Parameters
    Type Name Description
    'T value

    The value of the new, scalar tensor.

    Returns
    Type Description
    Tensor<'T>

    The new tensor.

    Type Parameters
    Name Description
    'T
    See Also
    static member scalar: ITensorDevice -> 'T -> Tensor<'T>
    Back to top Generated by DocFX