Applies the softmax function inplace to a matrix. The softmax function is defined as \( f(A[i,j]) = \frac{exp(A[i,j])}{\sum_i exp(A[i,j])} \)
在文件 implementation/SpecialPurpose.h 第 306 行定义.
Public 类型 | |
typedef Matrix::Scalar | T |
静态 Public 成员函数 | |
static void | compute (Matrix A) |
typedef Matrix::Scalar T |
Scalar type
在文件 implementation/SpecialPurpose.h 第 309 行定义.
|
static |
Applies the softmax function inplace to a matrix. The softmax function is defined as \( f(A[i,j]) = \frac{exp(A[i,j])}{\sum_i exp(A[i,j])} \)