Show / Hide Table of Contents

    Method map

    val map: 'T -> 'R -> Tensor<'T> -> Tensor<'R>

    Applies to specified function to all elements of the tensor.

    Declaration
    val map: fn:'T -> 'R -> a:Tensor<'T> -> Tensor<'R>
    Parameters
    Type Name Description
    'T -> 'R fn

    A function that takes a value from the input tensor and returns the corresponding output value.

    Tensor<'T> a

    The source tensor.

    Returns
    Type Description
    Tensor<'R>

    The output tensor.

    Type Parameters
    Name Description
    'T

    The type of the data.

    'R
    See Also
    val FillMap: Tensor<'T> -> 'TA -> 'T -> Tensor<'TA> -> unit
    val mapi: int64 [] -> 'T -> 'R -> Tensor<'T> -> Tensor<'R>
    val map2: 'TA -> 'TB -> 'R -> Tensor<'TA> -> Tensor<'TB> -> Tensor<'R>
    HostTensor.Parallel.map``2
    Back to top Generated by DocFX