triton.language.max_constancy
- triton.language.max_constancy(input, values, _semantic=None)
Let the compiler know that the elements of
inputalong dimensiondform constant groups of lengthvalues[d].valuesmust have one entry per dimension ofinputand each entry must be a power of two.A 1D array of
Nelements with constancyCis viewed asN/Cruns ofCidentical values. For example, ifvaluesis[4], the array[0, 0, 0, 0, 1, 1, 1, 1]satisfies the hint.