Show / Hide Table of Contents

    Method map2

    val map2: 'TA -> 'TB -> 'R -> Tensor<'TA> -> Tensor<'TB> -> Tensor<'R>

    Applies to specified function to all elements of the two tensors.

    Declaration
    val map2: fn:'TA -> 'TB -> 'R -> a:Tensor<'TA> -> b:Tensor<'TB> -> Tensor<'R>
    Parameters
    Type Name Description
    'TA -> 'TB -> 'R fn

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

    Tensor<'TA> a

    The first input tensor.

    Tensor<'TB> b

    The second input tensor.

    Returns
    Type Description
    Tensor<'R>

    The output tensor.

    Type Parameters
    Name Description
    'TA
    'TB
    'R
    See Also
    val FillMap2: Tensor<'T> -> 'TA -> 'TB -> 'T -> Tensor<'TA> -> Tensor<'TB> -> unit
    val map: 'T -> 'R -> Tensor<'T> -> Tensor<'R>
    val mapi2: int64 [] -> 'TA -> 'TB -> 'R -> Tensor<'TA> -> Tensor<'TB> -> Tensor<'R>
    HostTensor.Parallel.map2``3
    Back to top Generated by DocFX