triton.language.sum¶
- triton.language.sum(input, axis, builder=None)¶
Returns the sum of all elements in the
input
block along the providedaxis
- Parameters
input – the input values
axis – the dimension along which the reduction should be done
builder (triton.ir.builder, optional from within JIT'ed functions) – IR builder to generate code into