triton.language.log2

triton.language.log2(x, _semantic=None)

Computes the element-wise logarithm (base 2) of x.

Parameters:

x (Block) – the input values

This function can also be called as a member function on tensor, as x.log2() instead of log2(x).