ArmNN
 25.11
Loading...
Searching...
No Matches
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.
float m_ClippingThresCell
 Clipping threshold value for the cell state.
float m_ClippingThresProj
 Clipping threshold value for the projection.
bool m_CifgEnabled
 Enable/disable cifg (coupled input & forget gate).
bool m_PeepholeEnabled
 Enable/disable peephole.
bool m_ProjectionEnabled
 Enable/disable the projection layer.
bool m_LayerNormEnabled
 Enable/disable layer normalization.
bool m_TimeMajor
 Enable/disable time major.
float m_InputIntermediateScale
 Input intermediate quantization scale.
float m_ForgetIntermediateScale
 Forget intermediate quantization scale.
float m_CellIntermediateScale
 Cell intermediate quantization scale.
float m_OutputIntermediateScale
 Output intermediate quantization scale.
int32_t m_HiddenStateZeroPoint
 Hidden State zero point.
float m_HiddenStateScale
 Hidden State quantization scale.

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)
1113 , m_InputIntermediateScale(0.0)
1114 , m_ForgetIntermediateScale(0.0)
1115 , m_CellIntermediateScale(0.0)
1116 , m_OutputIntermediateScale(0.0)
1117 , m_HiddenStateZeroPoint(0)
1118 , m_HiddenStateScale(0.0)
1119 {}

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

Referenced by operator==().

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, m_CellIntermediateScale, m_CifgEnabled, m_ClippingThresCell, m_ClippingThresProj, m_ForgetIntermediateScale, m_HiddenStateScale, m_HiddenStateZeroPoint, m_InputIntermediateScale, m_LayerNormEnabled, m_OutputIntermediateScale, m_PeepholeEnabled, and m_TimeMajor.

Member Data Documentation

◆ m_ActivationFunc

◆ m_CellIntermediateScale

float m_CellIntermediateScale

◆ m_CifgEnabled

◆ m_ClippingThresCell

◆ m_ClippingThresProj

◆ m_ForgetIntermediateScale

float m_ForgetIntermediateScale

◆ m_HiddenStateScale

◆ m_HiddenStateZeroPoint

◆ m_InputIntermediateScale

float m_InputIntermediateScale

◆ m_LayerNormEnabled

◆ m_OutputIntermediateScale

float m_OutputIntermediateScale

◆ m_PeepholeEnabled

◆ m_ProjectionEnabled

◆ m_TimeMajor


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