Specialization of softmax for the Eigen3 backend
在文件 implementation/SpecialPurpose.h 第 321 行定义.
Public 类型 | |
typedef Matrix::Scalar | T |
typedef Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > | MatrixXt |
静态 Public 成员函数 | |
static void | compute (SGMatrix< T > A) |
typedef Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic> MatrixXt |
Eigen matrix type
在文件 implementation/SpecialPurpose.h 第 327 行定义.
typedef Matrix::Scalar T |
Scalar type
在文件 implementation/SpecialPurpose.h 第 324 行定义.
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 第 332 行定义.