mikolov-rnnlm-lib.cc File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "lm/mikolov-rnnlm-lib.h"
#include "util/table-types.h"
Include dependency graph for mikolov-rnnlm-lib.cc:

Go to the source code of this file.

Namespaces

 rnnlm
 

Macros

#define EXP_A   (1048576 / M_LN2)
 
#define EXP_C   60801
 
#define FAST_EXP(y)   (d2i.n.i = EXP_A * (y) + (1072693248 - EXP_C), d2i.d)
 

Variables

union {
   double   d
 
   struct {
      int   j
 
      int   i
 
   }   n
 
d2i
 

Macro Definition Documentation

◆ EXP_A

#define EXP_A   (1048576 / M_LN2)

Definition at line 69 of file mikolov-rnnlm-lib.cc.

◆ EXP_C

#define EXP_C   60801

Definition at line 70 of file mikolov-rnnlm-lib.cc.

◆ FAST_EXP

#define FAST_EXP (   y)    (d2i.n.i = EXP_A * (y) + (1072693248 - EXP_C), d2i.d)

Definition at line 71 of file mikolov-rnnlm-lib.cc.

Referenced by CRnnLM::computeNet().