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 |