PLearn 0.1
|
#include "SoftSoftMaxVariable.h"
Go to the source code of this file.
Namespaces | |
namespace | PLearn |
< for swap | |
Defines | |
#define | SOFTSOFTMAX_SAFELOG safelog |
#define | SOFTSOFTMAX_EXP exp |
#define | SOFTSOFTMAX_SAFEEXP safeexp |
#define | SOFTSOFTMAX_LOGADD(a, b) ( ((a)>(b)) ? (a)+log1p(exp((b)-(a))) : (b)+log1p(exp((a)-(b))) ) |
Functions | |
void | PLearn::softsoftmax_fprop_singlepass_version (int n, int d, const real *__restrict__ const X, const real *__restrict__ const U, real *__restrict__ const H) |
void | PLearn::softsoftmax_fprop_twopass_version (int n, int d, const real *__restrict__ const X, const real *__restrict__ const U, real *__restrict__ const H) |
void | PLearn::softsoftmax_with_log_twopass_version (int n, int d, const real *__restrict__ const X, const real *__restrict__ const U, real *__restrict__ const logH, real *__restrict__ const H) |
void | PLearn::softsoftmax_fprop_hardapprox_version (int n, int d, const real *__restrict__ const X, const real *__restrict__ const U, real *__restrict__ const H) |
void | PLearn::softsoftmax_bprop (int n, int d, const real *__restrict__ const X, const real *__restrict__ const U, const real *__restrict__ const logH, const real *__restrict__ const H_gr, real *__restrict__ const X_gr, real *__restrict__ const U_gr) |
Definition in file SoftSoftMaxVariable.cc.
#define SOFTSOFTMAX_EXP exp |
Definition at line 71 of file SoftSoftMaxVariable.cc.
Referenced by PLearn::softsoftmax_fprop_twopass_version(), and PLearn::softsoftmax_with_log_twopass_version().
#define SOFTSOFTMAX_LOGADD | ( | a, | |
b | |||
) | ( ((a)>(b)) ? (a)+log1p(exp((b)-(a))) : (b)+log1p(exp((a)-(b))) ) |
Definition at line 73 of file SoftSoftMaxVariable.cc.
Referenced by PLearn::softsoftmax_fprop_singlepass_version().
#define SOFTSOFTMAX_SAFEEXP safeexp |
#define SOFTSOFTMAX_SAFELOG safelog |
Definition at line 70 of file SoftSoftMaxVariable.cc.
Referenced by PLearn::softsoftmax_fprop_twopass_version(), and PLearn::softsoftmax_with_log_twopass_version().