PLearn 0.1
Namespaces | Defines | Functions
SoftSoftMaxVariable.cc File Reference
#include "SoftSoftMaxVariable.h"
Include dependency graph for SoftSoftMaxVariable.cc:

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)

Detailed Description

Definition in file SoftSoftMaxVariable.cc.


Define Documentation

#define SOFTSOFTMAX_EXP   exp
#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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines