triton.language.softmax

triton.language.softmax(x, dim=None, keep_dims=False, ieee_rounding=False)

Computes the element-wise softmax of x.

Parameters:

x (Block) – the input values

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