LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
lstm_beam_decoder.h File Reference
#include <vector>
#include <algorithm>
#include "bilstm.h"
#include "linear.h"
#include "embd_dict.h"

Go to the source code of this file.

Classes

struct  deeplima::eigen_impl::params_lstm_beam_decoder_t< M, V >
 
class  deeplima::eigen_impl::Op_LSTM_Beam_Decoder< M, V, T >
 
struct  deeplima::eigen_impl::Op_LSTM_Beam_Decoder< M, V, T >::workbench_t
 
struct  deeplima::eigen_impl::Op_LSTM_Beam_Decoder< M, V, T >::decoding_timepoint_t
 

Namespaces

namespace  deeplima
 
namespace  deeplima::eigen_impl
 

Macros

#define TANH(x)   ( T(2) / ( T(1) + Eigen::exp( T(-2) * (x).array() ) ) - T(1) )
 
#define SIGMOID(x)   ( T(1) / ( T(1) + Eigen::exp( - (x).array() ) ) )
 

Macro Definition Documentation

◆ SIGMOID

#define SIGMOID (   x)    ( T(1) / ( T(1) + Eigen::exp( - (x).array() ) ) )

Definition at line 411 of file lstm_beam_decoder.h.

◆ TANH

#define TANH (   x)    ( T(2) / ( T(1) + Eigen::exp( T(-2) * (x).array() ) ) - T(1) )

Definition at line 410 of file lstm_beam_decoder.h.