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