ArmNN
 20.02
QuantizedLstmInputParams Struct Reference

#include <QuantizedLstmParams.hpp>

Public Member Functions

 QuantizedLstmInputParams ()
 
const ConstTensorDeref (const ConstTensor *tensorPtr) const
 
const ConstTensorGetInputToInputWeights () const
 
const ConstTensorGetInputToForgetWeights () const
 
const ConstTensorGetInputToCellWeights () const
 
const ConstTensorGetInputToOutputWeights () const
 
const ConstTensorGetRecurrentToInputWeights () const
 
const ConstTensorGetRecurrentToForgetWeights () const
 
const ConstTensorGetRecurrentToCellWeights () const
 
const ConstTensorGetRecurrentToOutputWeights () const
 
const ConstTensorGetInputGateBias () const
 
const ConstTensorGetForgetGateBias () const
 
const ConstTensorGetCellBias () const
 
const ConstTensorGetOutputGateBias () const
 

Public Attributes

const ConstTensorm_InputToInputWeights
 
const ConstTensorm_InputToForgetWeights
 
const ConstTensorm_InputToCellWeights
 
const ConstTensorm_InputToOutputWeights
 
const ConstTensorm_RecurrentToInputWeights
 
const ConstTensorm_RecurrentToForgetWeights
 
const ConstTensorm_RecurrentToCellWeights
 
const ConstTensorm_RecurrentToOutputWeights
 
const ConstTensorm_InputGateBias
 
const ConstTensorm_ForgetGateBias
 
const ConstTensorm_CellBias
 
const ConstTensorm_OutputGateBias
 

Detailed Description

Definition at line 13 of file QuantizedLstmParams.hpp.

Constructor & Destructor Documentation

◆ QuantizedLstmInputParams()

Definition at line 15 of file QuantizedLstmParams.hpp.

16  : m_InputToInputWeights(nullptr)
17  , m_InputToForgetWeights(nullptr)
18  , m_InputToCellWeights(nullptr)
19  , m_InputToOutputWeights(nullptr)
20 
21  , m_RecurrentToInputWeights(nullptr)
23  , m_RecurrentToCellWeights(nullptr)
25 
26  , m_InputGateBias(nullptr)
27  , m_ForgetGateBias(nullptr)
28  , m_CellBias(nullptr)
29  , m_OutputGateBias(nullptr)
30  {
31  }
const ConstTensor * m_RecurrentToOutputWeights
const ConstTensor * m_RecurrentToForgetWeights
const ConstTensor * m_InputToForgetWeights
const ConstTensor * m_RecurrentToInputWeights
const ConstTensor * m_RecurrentToCellWeights
const ConstTensor * m_InputToOutputWeights

Member Function Documentation

◆ Deref()

const ConstTensor& Deref ( const ConstTensor tensorPtr) const
inline

Definition at line 48 of file QuantizedLstmParams.hpp.

Referenced by QuantizedLstmInputParams::GetCellBias(), QuantizedLstmInputParamsInfo::GetCellBias(), QuantizedLstmInputParams::GetForgetGateBias(), QuantizedLstmInputParamsInfo::GetForgetGateBias(), QuantizedLstmInputParams::GetInputGateBias(), QuantizedLstmInputParamsInfo::GetInputGateBias(), QuantizedLstmInputParams::GetInputToCellWeights(), QuantizedLstmInputParamsInfo::GetInputToCellWeights(), QuantizedLstmInputParams::GetInputToForgetWeights(), QuantizedLstmInputParamsInfo::GetInputToForgetWeights(), QuantizedLstmInputParams::GetInputToInputWeights(), QuantizedLstmInputParamsInfo::GetInputToInputWeights(), QuantizedLstmInputParams::GetInputToOutputWeights(), QuantizedLstmInputParamsInfo::GetInputToOutputWeights(), QuantizedLstmInputParams::GetOutputGateBias(), QuantizedLstmInputParamsInfo::GetOutputGateBias(), QuantizedLstmInputParams::GetRecurrentToCellWeights(), QuantizedLstmInputParamsInfo::GetRecurrentToCellWeights(), QuantizedLstmInputParams::GetRecurrentToForgetWeights(), QuantizedLstmInputParamsInfo::GetRecurrentToForgetWeights(), QuantizedLstmInputParams::GetRecurrentToInputWeights(), QuantizedLstmInputParamsInfo::GetRecurrentToInputWeights(), QuantizedLstmInputParams::GetRecurrentToOutputWeights(), and QuantizedLstmInputParamsInfo::GetRecurrentToOutputWeights().

49  {
50  if (tensorPtr != nullptr)
51  {
52  const ConstTensor &temp = *tensorPtr;
53  return temp;
54  }
55  throw InvalidArgumentException("QuantizedLstmInputParams: Can't dereference a null pointer");
56  }

◆ GetCellBias()

const ConstTensor& GetCellBias ( ) const
inline

Definition at line 108 of file QuantizedLstmParams.hpp.

References QuantizedLstmInputParams::Deref().

Referenced by Network::AddQuantizedLstmLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().

109  {
110  return Deref(m_CellBias);
111  }
const ConstTensor & Deref(const ConstTensor *tensorPtr) const

◆ GetForgetGateBias()

const ConstTensor& GetForgetGateBias ( ) const
inline

Definition at line 103 of file QuantizedLstmParams.hpp.

References QuantizedLstmInputParams::Deref().

Referenced by Network::AddQuantizedLstmLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().

104  {
105  return Deref(m_ForgetGateBias);
106  }
const ConstTensor & Deref(const ConstTensor *tensorPtr) const

◆ GetInputGateBias()

const ConstTensor& GetInputGateBias ( ) const
inline

Definition at line 98 of file QuantizedLstmParams.hpp.

References QuantizedLstmInputParams::Deref().

Referenced by Network::AddQuantizedLstmLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().

99  {
100  return Deref(m_InputGateBias);
101  }
const ConstTensor & Deref(const ConstTensor *tensorPtr) const

◆ GetInputToCellWeights()

const ConstTensor& GetInputToCellWeights ( ) const
inline

Definition at line 68 of file QuantizedLstmParams.hpp.

References QuantizedLstmInputParams::Deref().

Referenced by Network::AddQuantizedLstmLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().

69  {
71  }
const ConstTensor & Deref(const ConstTensor *tensorPtr) const

◆ GetInputToForgetWeights()

const ConstTensor& GetInputToForgetWeights ( ) const
inline

Definition at line 63 of file QuantizedLstmParams.hpp.

References QuantizedLstmInputParams::Deref().

Referenced by Network::AddQuantizedLstmLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().

64  {
66  }
const ConstTensor & Deref(const ConstTensor *tensorPtr) const
const ConstTensor * m_InputToForgetWeights

◆ GetInputToInputWeights()

const ConstTensor& GetInputToInputWeights ( ) const
inline

Definition at line 58 of file QuantizedLstmParams.hpp.

References QuantizedLstmInputParams::Deref().

Referenced by Network::AddQuantizedLstmLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().

59  {
61  }
const ConstTensor & Deref(const ConstTensor *tensorPtr) const

◆ GetInputToOutputWeights()

const ConstTensor& GetInputToOutputWeights ( ) const
inline

Definition at line 73 of file QuantizedLstmParams.hpp.

References QuantizedLstmInputParams::Deref().

Referenced by Network::AddQuantizedLstmLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().

74  {
76  }
const ConstTensor & Deref(const ConstTensor *tensorPtr) const
const ConstTensor * m_InputToOutputWeights

◆ GetOutputGateBias()

const ConstTensor& GetOutputGateBias ( ) const
inline

Definition at line 113 of file QuantizedLstmParams.hpp.

References QuantizedLstmInputParams::Deref().

Referenced by Network::AddQuantizedLstmLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().

114  {
115  return Deref(m_OutputGateBias);
116  }
const ConstTensor & Deref(const ConstTensor *tensorPtr) const

◆ GetRecurrentToCellWeights()

const ConstTensor& GetRecurrentToCellWeights ( ) const
inline

Definition at line 88 of file QuantizedLstmParams.hpp.

References QuantizedLstmInputParams::Deref().

Referenced by Network::AddQuantizedLstmLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().

89  {
91  }
const ConstTensor & Deref(const ConstTensor *tensorPtr) const
const ConstTensor * m_RecurrentToCellWeights

◆ GetRecurrentToForgetWeights()

const ConstTensor& GetRecurrentToForgetWeights ( ) const
inline

Definition at line 83 of file QuantizedLstmParams.hpp.

References QuantizedLstmInputParams::Deref().

Referenced by Network::AddQuantizedLstmLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().

84  {
86  }
const ConstTensor & Deref(const ConstTensor *tensorPtr) const
const ConstTensor * m_RecurrentToForgetWeights

◆ GetRecurrentToInputWeights()

const ConstTensor& GetRecurrentToInputWeights ( ) const
inline

Definition at line 78 of file QuantizedLstmParams.hpp.

References QuantizedLstmInputParams::Deref().

Referenced by Network::AddQuantizedLstmLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().

79  {
81  }
const ConstTensor & Deref(const ConstTensor *tensorPtr) const
const ConstTensor * m_RecurrentToInputWeights

◆ GetRecurrentToOutputWeights()

const ConstTensor& GetRecurrentToOutputWeights ( ) const
inline

Definition at line 93 of file QuantizedLstmParams.hpp.

References QuantizedLstmInputParams::Deref().

Referenced by Network::AddQuantizedLstmLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().

94  {
96  }
const ConstTensor & Deref(const ConstTensor *tensorPtr) const
const ConstTensor * m_RecurrentToOutputWeights

Member Data Documentation

◆ m_CellBias

◆ m_ForgetGateBias

◆ m_InputGateBias

◆ m_InputToCellWeights

◆ m_InputToForgetWeights

◆ m_InputToInputWeights

◆ m_InputToOutputWeights

◆ m_OutputGateBias

◆ m_RecurrentToCellWeights

◆ m_RecurrentToForgetWeights

◆ m_RecurrentToInputWeights

◆ m_RecurrentToOutputWeights


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