ArmNN
 21.02
LstmDescriptor Struct Reference

An LstmDescriptor for the LstmLayer. More...

#include <Descriptors.hpp>

Inheritance diagram for LstmDescriptor:
BaseDescriptor

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 911 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ LstmDescriptor()

LstmDescriptor ( )
inline

Definition at line 913 of file Descriptors.hpp.

914  : m_ActivationFunc(1) // 0: None, 1: Relu, 3: Relu6, 4: Tanh, 6: Sigmoid
915  , m_ClippingThresCell(0.0)
916  , m_ClippingThresProj(0.0)
917  , m_CifgEnabled(true)
918  , m_PeepholeEnabled(false)
919  , m_ProjectionEnabled(false)
920  , m_LayerNormEnabled(false)
921  {}
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 923 of file Descriptors.hpp.

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

924  {
925  return m_ActivationFunc == rhs.m_ActivationFunc &&
926  m_ClippingThresCell == rhs.m_ClippingThresCell &&
927  m_ClippingThresProj == rhs.m_ClippingThresProj &&
928  m_CifgEnabled == rhs.m_CifgEnabled &&
929  m_PeepholeEnabled == rhs.m_PeepholeEnabled &&
930  m_LayerNormEnabled == rhs.m_LayerNormEnabled;
931  }
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: