Method FillFoldAxis
val FillFoldAxis: Tensor<'T> -> 'T -> 'TA -> 'T -> Tensor<'T> -> int -> Tensor<'TA> -> unit
Applies to specified function to all elements of the tensor, threading an accumulator through the computation using multiple threads.
Declaration
val FillFoldAxis: trgt:Tensor<'T> -> fn:'T -> 'TA -> 'T -> initial:Tensor<'T> -> axis:int -> a:Tensor<'TA> -> unit
Parameters
Type | Name | Description |
---|---|---|
Tensor<'T> | trgt | The output tensor that will contain the final state values. |
'T -> 'TA -> 'T | fn | A function that takes a state value and a value from the input tensor and returns a new state value. |
Tensor<'T> | initial | The initial state value. |
int | axis | The axis to fold over. |
Tensor<'TA> | a | The source tensor. |
Type Parameters
Name | Description |
---|---|
'T | The type of the data. |
'TA |
See Also
HostTensor.FillFoldAxis``3