triton.language.abs

triton.language.abs(x)

Computes the element-wise absolute value of x.

Parameters:

x (Block) – the input values

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