ArmNN
 20.02
LstmDescriptor Struct Reference

An LstmDescriptor for the LstmLayer. More...

#include <Descriptors.hpp>

Public Member Functions

 LstmDescriptor ()
 
bool operator== (const LstmDescriptor &rhs) const
 

Public Attributes

uint32_t m_ActivationFunc
 The activation function to use. More...
 
float m_ClippingThresCell
 Clipping threshold value for the cell state. More...
 
float m_ClippingThresProj
 Clipping threshold value for the projection. More...
 
bool m_CifgEnabled
 Enable/disable cifg (coupled input & forget gate). More...
 
bool m_PeepholeEnabled
 Enable/disable peephole. More...
 
bool m_ProjectionEnabled
 Enable/disable the projection layer. More...
 
bool m_LayerNormEnabled
 Enable/disable layer normalization. More...
 

Detailed Description

An LstmDescriptor for the LstmLayer.

Definition at line 837 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ LstmDescriptor()

LstmDescriptor ( )
inline

Definition at line 839 of file Descriptors.hpp.

840  : m_ActivationFunc(1) // 0: None, 1: Relu, 3: Relu6, 4: Tanh, 6: Sigmoid
841  , m_ClippingThresCell(0.0)
842  , m_ClippingThresProj(0.0)
843  , m_CifgEnabled(true)
844  , m_PeepholeEnabled(false)
845  , m_ProjectionEnabled(false)
846  , m_LayerNormEnabled(false)
847  {}
bool m_ProjectionEnabled
Enable/disable the projection layer.
float m_ClippingThresProj
Clipping threshold value for the projection.
bool m_PeepholeEnabled
Enable/disable peephole.
uint32_t m_ActivationFunc
The activation function to use.
float m_ClippingThresCell
Clipping threshold value for the cell state.
bool m_CifgEnabled
Enable/disable cifg (coupled input & forget gate).
bool m_LayerNormEnabled
Enable/disable layer normalization.

Member Function Documentation

◆ operator==()

bool operator== ( const LstmDescriptor rhs) const
inline

Definition at line 849 of file Descriptors.hpp.

References LstmDescriptor::m_ActivationFunc, LstmDescriptor::m_CifgEnabled, LstmDescriptor::m_ClippingThresCell, LstmDescriptor::m_ClippingThresProj, LstmDescriptor::m_LayerNormEnabled, and LstmDescriptor::m_PeepholeEnabled.

850  {
851  return m_ActivationFunc == rhs.m_ActivationFunc &&
852  m_ClippingThresCell == rhs.m_ClippingThresCell &&
853  m_ClippingThresProj == rhs.m_ClippingThresProj &&
854  m_CifgEnabled == rhs.m_CifgEnabled &&
855  m_PeepholeEnabled == rhs.m_PeepholeEnabled &&
856  m_LayerNormEnabled == rhs.m_LayerNormEnabled;
857  }
float m_ClippingThresProj
Clipping threshold value for the projection.
bool m_PeepholeEnabled
Enable/disable peephole.
uint32_t m_ActivationFunc
The activation function to use.
float m_ClippingThresCell
Clipping threshold value for the cell state.
bool m_CifgEnabled
Enable/disable cifg (coupled input & forget gate).
bool m_LayerNormEnabled
Enable/disable layer normalization.

Member Data Documentation

◆ m_ActivationFunc

◆ m_CifgEnabled

◆ m_ClippingThresCell

◆ m_ClippingThresProj

◆ m_LayerNormEnabled

◆ m_PeepholeEnabled

◆ m_ProjectionEnabled


The documentation for this struct was generated from the following file: