Expand description
Reduction algorithms
Structs§
- SumAutotune
Key - Autotune key representative of sum versions
Enums§
- Kernel
Reduce Strategy - Select a strategy to perform a reduction.
- SumStrategy
- Select a strategy to perform a sum.
Functions§
- autotune_
reduce autotune - Executes autotune on reduce operations.
- autotune_
sum autotune - Executes autotune on reduce operations.
- init_
reduce_ output - Creates an empty output tensor with the proper shape and decreasing strides to reduce the given
axisofinputor returnNoneifaxisis out-of-bound. - reduce
- Reduce all elements of the
inputtensor using the instructionRdand the given Strategy. - reduce_
dim - Reduce the given
axisof theinputtensor using the instructionRdand the given Strategy. - sum
- Specialize reduce function to compute the sum of all elements of the
inputtensor and return the value into a single-element tensor of shape1 x 1 x 1 x ...with the same rank asinput. - sum_
fallback - Sum with fallback when
clientdoesn’t support atomic add for the typeE.