Method mapi2
val mapi2: int64 [] -> 'TA -> 'TB -> 'R -> Tensor<'TA> -> Tensor<'TB> -> Tensor<'R>
Applies to specified indexed function to all elements of the two tensors using multiple threads.
Declaration
val mapi2: fn:int64 [] -> 'TA -> 'TB -> 'R -> a:Tensor<'TA> -> b:Tensor<'TB> -> Tensor<'R>Parameters
| Type | Name | Description | 
|---|---|---|
| int64 [] -> 'TA -> 'TB -> 'R | fn | A function that takes an index, the corresponding value from the first input and 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 |