ArmNN
 24.08
LstmDescriptor Struct Reference

An LstmDescriptor for the LstmLayer. More...

#include <Descriptors.hpp>

Inheritance diagram for LstmDescriptor:
[legend]
Collaboration diagram for LstmDescriptor:
[legend]

Public Member Functions

 LstmDescriptor ()
 
bool operator== (const LstmDescriptor &rhs) const
 
- Public Member Functions inherited from BaseDescriptor
virtual bool IsNull () const
 
virtual ~BaseDescriptor ()=default
 

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...
 
bool m_TimeMajor
 Enable/disable time major. More...
 
float m_InputIntermediateScale
 Input intermediate quantization scale. More...
 
float m_ForgetIntermediateScale
 Forget intermediate quantization scale. More...
 
float m_CellIntermediateScale
 Cell intermediate quantization scale. More...
 
float m_OutputIntermediateScale
 Output intermediate quantization scale. More...
 
int32_t m_HiddenStateZeroPoint
 Hidden State zero point. More...
 
float m_HiddenStateScale
 Hidden State quantization scale. More...
 

Detailed Description

An LstmDescriptor for the LstmLayer.

Definition at line 1102 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ LstmDescriptor()

LstmDescriptor ( )
inline

Definition at line 1104 of file Descriptors.hpp.

1105  : m_ActivationFunc(1) // 0: None, 1: Relu, 3: Relu6, 4: Tanh, 6: Sigmoid
1106  , m_ClippingThresCell(0.0)
1107  , m_ClippingThresProj(0.0)
1108  , m_CifgEnabled(true)
1109  , m_PeepholeEnabled(false)
1110  , m_ProjectionEnabled(false)
1111  , m_LayerNormEnabled(false)
1112  , m_TimeMajor(false)
1118  , m_HiddenStateScale(0.0)
1119  {}

Member Function Documentation

◆ operator==()

bool operator== ( const LstmDescriptor rhs) const
inline

Definition at line 1121 of file Descriptors.hpp.

1122  {
1123  return m_ActivationFunc == rhs.m_ActivationFunc &&
1124  m_ClippingThresCell == rhs.m_ClippingThresCell &&
1125  m_ClippingThresProj == rhs.m_ClippingThresProj &&
1126  m_CifgEnabled == rhs.m_CifgEnabled &&
1127  m_PeepholeEnabled == rhs.m_PeepholeEnabled &&
1128  m_LayerNormEnabled == rhs.m_LayerNormEnabled &&
1129  m_TimeMajor == rhs.m_TimeMajor &&
1130  m_InputIntermediateScale == rhs.m_InputIntermediateScale &&
1131  m_ForgetIntermediateScale == rhs.m_ForgetIntermediateScale &&
1132  m_CellIntermediateScale == rhs.m_CellIntermediateScale &&
1133  m_OutputIntermediateScale == rhs.m_OutputIntermediateScale &&
1134  m_HiddenStateZeroPoint == rhs.m_HiddenStateZeroPoint &&
1135  m_HiddenStateScale == rhs.m_HiddenStateScale;
1136  }

References LstmDescriptor::m_ActivationFunc, LstmDescriptor::m_CellIntermediateScale, LstmDescriptor::m_CifgEnabled, LstmDescriptor::m_ClippingThresCell, LstmDescriptor::m_ClippingThresProj, LstmDescriptor::m_ForgetIntermediateScale, LstmDescriptor::m_HiddenStateScale, LstmDescriptor::m_HiddenStateZeroPoint, LstmDescriptor::m_InputIntermediateScale, LstmDescriptor::m_LayerNormEnabled, LstmDescriptor::m_OutputIntermediateScale, LstmDescriptor::m_PeepholeEnabled, and LstmDescriptor::m_TimeMajor.

Member Data Documentation

◆ m_ActivationFunc

uint32_t m_ActivationFunc

◆ m_CellIntermediateScale

float m_CellIntermediateScale

Cell intermediate quantization scale.

Definition at line 1160 of file Descriptors.hpp.

Referenced by LstmDescriptor::operator==().

◆ m_CifgEnabled

◆ m_ClippingThresCell

◆ m_ClippingThresProj

◆ m_ForgetIntermediateScale

float m_ForgetIntermediateScale

Forget intermediate quantization scale.

Definition at line 1158 of file Descriptors.hpp.

Referenced by LstmDescriptor::operator==().

◆ m_HiddenStateScale

float m_HiddenStateScale

Hidden State quantization scale.

Definition at line 1166 of file Descriptors.hpp.

Referenced by LstmDescriptor::operator==().

◆ m_HiddenStateZeroPoint

int32_t m_HiddenStateZeroPoint

Hidden State zero point.

Definition at line 1164 of file Descriptors.hpp.

Referenced by LstmDescriptor::operator==().

◆ m_InputIntermediateScale

float m_InputIntermediateScale

Input intermediate quantization scale.

Definition at line 1156 of file Descriptors.hpp.

Referenced by LstmDescriptor::operator==().

◆ m_LayerNormEnabled

◆ m_OutputIntermediateScale

float m_OutputIntermediateScale

Output intermediate quantization scale.

Definition at line 1162 of file Descriptors.hpp.

Referenced by LstmDescriptor::operator==().

◆ m_PeepholeEnabled

◆ m_ProjectionEnabled

◆ m_TimeMajor


The documentation for this struct was generated from the following file:
armnn::LstmDescriptor::m_TimeMajor
bool m_TimeMajor
Enable/disable time major.
Definition: Descriptors.hpp:1154
armnn::LstmDescriptor::m_InputIntermediateScale
float m_InputIntermediateScale
Input intermediate quantization scale.
Definition: Descriptors.hpp:1156
armnn::LstmDescriptor::m_PeepholeEnabled
bool m_PeepholeEnabled
Enable/disable peephole.
Definition: Descriptors.hpp:1148
armnn::LstmDescriptor::m_ClippingThresProj
float m_ClippingThresProj
Clipping threshold value for the projection.
Definition: Descriptors.hpp:1144
armnn::LstmDescriptor::m_HiddenStateScale
float m_HiddenStateScale
Hidden State quantization scale.
Definition: Descriptors.hpp:1166
armnn::LstmDescriptor::m_HiddenStateZeroPoint
int32_t m_HiddenStateZeroPoint
Hidden State zero point.
Definition: Descriptors.hpp:1164
armnn::LstmDescriptor::m_OutputIntermediateScale
float m_OutputIntermediateScale
Output intermediate quantization scale.
Definition: Descriptors.hpp:1162
armnn::LstmDescriptor::m_CifgEnabled
bool m_CifgEnabled
Enable/disable cifg (coupled input & forget gate).
Definition: Descriptors.hpp:1146
armnn::LstmDescriptor::m_ForgetIntermediateScale
float m_ForgetIntermediateScale
Forget intermediate quantization scale.
Definition: Descriptors.hpp:1158
armnn::LstmDescriptor::m_LayerNormEnabled
bool m_LayerNormEnabled
Enable/disable layer normalization.
Definition: Descriptors.hpp:1152
armnn::LstmDescriptor::m_ProjectionEnabled
bool m_ProjectionEnabled
Enable/disable the projection layer.
Definition: Descriptors.hpp:1150
armnn::LstmDescriptor::m_ActivationFunc
uint32_t m_ActivationFunc
The activation function to use.
Definition: Descriptors.hpp:1140
armnn::LstmDescriptor::m_ClippingThresCell
float m_ClippingThresCell
Clipping threshold value for the cell state.
Definition: Descriptors.hpp:1142
armnn::LstmDescriptor::m_CellIntermediateScale
float m_CellIntermediateScale
Cell intermediate quantization scale.
Definition: Descriptors.hpp:1160