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