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

Go to the source code of this file.

Classes

class  deeplima::eigen_impl::Op_BiLSTM_Dense_ArgMax< M, V, T, AuxScalar, IFracBits, WFracBits >
 Fusion of several torch modules implemented for inference in Eigen. More...
 
struct  deeplima::eigen_impl::Op_BiLSTM_Dense_ArgMax< M, V, T, AuxScalar, IFracBits, WFracBits >::workbench_t
 
struct  deeplima::eigen_impl::Op_BiLSTM_Dense_ArgMax< M, V, T, AuxScalar, IFracBits, WFracBits >::params_bilstm_dense_argmax_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 571 of file bilstm_and_dense.h.

◆ TANH

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

Definition at line 570 of file bilstm_and_dense.h.