入门指南
Python API
softmax()
Triton MLIR方言
编程指南
计算x的逐元素softmax。
x
x (Block) – 输入值
该函数也可以作为成员函数在tensor上调用, 使用x.softmax(...)而非 softmax(x, ...)的形式。
tensor
x.softmax(...)
softmax(x, ...)