ArmNN
 23.05
QLstmQueueDescriptor Struct Reference

#include <WorkloadData.hpp>

Inheritance diagram for QLstmQueueDescriptor:
QueueDescriptorWithParameters< QLstmDescriptor > QueueDescriptor

Public Member Functions

 QLstmQueueDescriptor ()
 
void Validate (const WorkloadInfo &workloadInfo) const
 
- Public Member Functions inherited from QueueDescriptorWithParameters< QLstmDescriptor >
virtual ~QueueDescriptorWithParameters ()=default
 
- Public Member Functions inherited from QueueDescriptor
virtual ~QueueDescriptor ()=default
 
void ValidateTensorNumDimensions (const TensorInfo &tensor, std::string const &descName, unsigned int numDimensions, std::string const &tensorName) const
 
void ValidateTensorNumDimNumElem (const TensorInfo &tensorInfo, unsigned int numDimension, unsigned int numElements, std::string const &tensorName) const
 
void ValidateInputsOutputs (const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
 
template<typename T >
const T * GetAdditionalInformation () const
 

Public Attributes

const ConstTensorHandlem_InputToInputWeights
 
const ConstTensorHandlem_InputToForgetWeights
 
const ConstTensorHandlem_InputToCellWeights
 
const ConstTensorHandlem_InputToOutputWeights
 
const ConstTensorHandlem_RecurrentToInputWeights
 
const ConstTensorHandlem_RecurrentToForgetWeights
 
const ConstTensorHandlem_RecurrentToCellWeights
 
const ConstTensorHandlem_RecurrentToOutputWeights
 
const ConstTensorHandlem_CellToInputWeights
 
const ConstTensorHandlem_CellToForgetWeights
 
const ConstTensorHandlem_CellToOutputWeights
 
const ConstTensorHandlem_InputGateBias
 
const ConstTensorHandlem_ForgetGateBias
 
const ConstTensorHandlem_CellBias
 
const ConstTensorHandlem_OutputGateBias
 
const ConstTensorHandlem_ProjectionWeights
 
const ConstTensorHandlem_ProjectionBias
 
const ConstTensorHandlem_InputLayerNormWeights
 
const ConstTensorHandlem_ForgetLayerNormWeights
 
const ConstTensorHandlem_CellLayerNormWeights
 
const ConstTensorHandlem_OutputLayerNormWeights
 
- Public Attributes inherited from QueueDescriptorWithParameters< QLstmDescriptor >
QLstmDescriptor m_Parameters
 
- Public Attributes inherited from QueueDescriptor
std::vector< ITensorHandle * > m_Inputs
 
std::vector< ITensorHandle * > m_Outputs
 
void * m_AdditionalInfoObject
 
bool m_AllowExpandedDims = false
 

Additional Inherited Members

- Protected Member Functions inherited from QueueDescriptorWithParameters< QLstmDescriptor >
 QueueDescriptorWithParameters ()=default
 
 QueueDescriptorWithParameters (QueueDescriptorWithParameters const &)=default
 
QueueDescriptorWithParametersoperator= (QueueDescriptorWithParameters const &)=default
 
- Protected Member Functions inherited from QueueDescriptor
 QueueDescriptor ()
 
 QueueDescriptor (QueueDescriptor const &)=default
 
QueueDescriptoroperator= (QueueDescriptor const &)=default
 

Detailed Description

Definition at line 557 of file WorkloadData.hpp.

Constructor & Destructor Documentation

◆ QLstmQueueDescriptor()

Definition at line 559 of file WorkloadData.hpp.

560  : m_InputToInputWeights(nullptr)
561  , m_InputToForgetWeights(nullptr)
562  , m_InputToCellWeights(nullptr)
563  , m_InputToOutputWeights(nullptr)
564  , m_RecurrentToInputWeights(nullptr)
565  , m_RecurrentToForgetWeights(nullptr)
566  , m_RecurrentToCellWeights(nullptr)
567  , m_RecurrentToOutputWeights(nullptr)
568  , m_CellToInputWeights(nullptr)
569  , m_CellToForgetWeights(nullptr)
570  , m_CellToOutputWeights(nullptr)
571  , m_InputGateBias(nullptr)
572  , m_ForgetGateBias(nullptr)
573  , m_CellBias(nullptr)
574  , m_OutputGateBias(nullptr)
575  , m_ProjectionWeights(nullptr)
576  , m_ProjectionBias(nullptr)
577  , m_InputLayerNormWeights(nullptr)
578  , m_ForgetLayerNormWeights(nullptr)
579  , m_CellLayerNormWeights(nullptr)
580  , m_OutputLayerNormWeights(nullptr)
581  {
582  }

Member Function Documentation

◆ Validate()

void Validate ( const WorkloadInfo workloadInfo) const

Definition at line 3052 of file WorkloadData.cpp.

3053 {
3054  const std::string descriptorName{"QLstmQueueDescriptor"};
3055 
3056  // Validate number of inputs/outputs
3057  ValidateNumInputs(workloadInfo, descriptorName, 3);
3058  ValidateNumOutputs(workloadInfo, descriptorName, 3);
3059 
3060  // Input/output tensor info
3061  auto inputInfo = workloadInfo.m_InputTensorInfos[0];
3062  auto outputStateInInfo = workloadInfo.m_InputTensorInfos[1];
3063  auto cellStateInInfo = workloadInfo.m_InputTensorInfos[2];
3064 
3065  auto outputStateOutInfo = workloadInfo.m_OutputTensorInfos[0];
3066  auto cellStateOutInfo = workloadInfo.m_OutputTensorInfos[1];
3067  auto outputInfo = workloadInfo.m_OutputTensorInfos[2];
3068 
3069  // Supported types for various tensors in QLSTM
3070  std::vector<DataType> inputOutputSupportedTypes =
3071  {
3073  };
3074 
3075  std::vector<DataType> cellStateSupportedTypes =
3076  {
3078  };
3079 
3080  std::vector<DataType> weightsSupportedTypes =
3081  {
3083  };
3084 
3085  std::vector<DataType> layerNormPeepholeWeightsSupportedTypes =
3086  {
3088  };
3089 
3090  std::vector<DataType> biasSupportedTypes =
3091  {
3093  };
3094 
3095  // Validate types of input/output tensors
3096  ValidateDataTypes(inputInfo, inputOutputSupportedTypes, descriptorName);
3097  ValidateDataTypes(outputStateInInfo, inputOutputSupportedTypes, descriptorName);
3098  ValidateDataTypes(cellStateInInfo, cellStateSupportedTypes, descriptorName);
3099 
3100  ValidateDataTypes(outputStateOutInfo, inputOutputSupportedTypes, descriptorName);
3101  ValidateDataTypes(cellStateOutInfo, cellStateSupportedTypes, descriptorName);
3102  ValidateDataTypes(outputInfo, inputOutputSupportedTypes, descriptorName);
3103 
3104  // Validate matching types of input/output tensors
3105  ValidateTensorDataTypesMatch(inputInfo, outputStateInInfo, descriptorName, "input", "outputStateIn");
3106  ValidateTensorDataTypesMatch(outputStateInInfo, outputStateOutInfo, descriptorName,
3107  "outputStateIn", "outputStateOut");
3108  ValidateTensorDataTypesMatch(cellStateInInfo, cellStateOutInfo, descriptorName, "cellStateIn", "cellStateOut");
3109 
3110  // Infer number of batches, number of units, input size and output size from tensor dimensions
3111  const uint32_t numBatches = inputInfo.GetShape()[0];
3112  const uint32_t inputSize = inputInfo.GetShape()[1];
3113  const uint32_t outputSize = outputStateInInfo.GetShape()[1];
3114  const uint32_t numUnits = cellStateInInfo.GetShape()[1];
3115 
3116  // Validate number of dimensions and number of elements for input/output tensors
3117  ValidateTensorNumDimNumElem(inputInfo, 2, (numBatches * inputSize), descriptorName + " input");
3118  ValidateTensorNumDimNumElem(outputStateInInfo, 2, (numBatches * outputSize), descriptorName + " outputStateIn");
3119  ValidateTensorNumDimNumElem(cellStateInInfo, 2, (numBatches * numUnits), descriptorName + " cellStateIn");
3120 
3121  ValidateTensorNumDimNumElem(outputStateOutInfo, 2, (numBatches * outputSize), descriptorName + " outputStateOut");
3122  ValidateTensorNumDimNumElem(cellStateOutInfo, 2, (numBatches * numUnits), descriptorName + " cellStateOut");
3123  ValidateTensorNumDimNumElem(outputInfo, 2, (numBatches * outputSize), descriptorName + " output");
3124 
3125  // Validate number of dimensions and number of elements for MANDATORY weight tensors
3126  ValidatePointer(m_InputToForgetWeights, descriptorName, "InputToForgetWeights");
3127  auto inputToForgetWeightsInfo = m_InputToForgetWeights->GetTensorInfo();
3128  ValidateTensorNumDimNumElem(inputToForgetWeightsInfo, 2, (numUnits * inputSize), " InputToForgetWeights");
3129 
3130  ValidatePointer(m_InputToCellWeights, descriptorName, "InputToCellWeights");
3131  auto inputToCellWeightsInfo = m_InputToCellWeights->GetTensorInfo();
3132  ValidateTensorNumDimNumElem(inputToCellWeightsInfo, 2, (numUnits * inputSize), " InputToCellWeights");
3133 
3134  ValidatePointer(m_InputToOutputWeights, descriptorName, "InputToOutputWeights");
3135  auto inputToOutputWeightsInfo = m_InputToOutputWeights->GetTensorInfo();
3136  ValidateTensorNumDimNumElem(inputToOutputWeightsInfo, 2, (numUnits * inputSize), " InputToOutputWeights");
3137 
3138  ValidatePointer(m_RecurrentToForgetWeights, descriptorName, "RecurrentToForgetWeights");
3139  auto recurrentToForgetWeightsInfo = m_RecurrentToForgetWeights->GetTensorInfo();
3140  ValidateTensorNumDimNumElem(recurrentToForgetWeightsInfo, 2, (numUnits * outputSize),
3141  " RecurrentToForgetWeights");
3142 
3143  ValidatePointer(m_RecurrentToCellWeights, descriptorName, "RecurrentToCellWeights");
3144  auto recurrentToCellWeightsInfo = m_RecurrentToCellWeights->GetTensorInfo();
3145  ValidateTensorNumDimNumElem(recurrentToCellWeightsInfo, 2, (numUnits * outputSize), " RecurrentToCellWeights");
3146 
3147  ValidatePointer(m_RecurrentToOutputWeights, descriptorName, "RecurrentToOutputWeights");
3148  auto recurrentToOutputWeightsInfo = m_RecurrentToOutputWeights->GetTensorInfo();
3149  ValidateTensorNumDimNumElem(recurrentToOutputWeightsInfo, 2, (numUnits * outputSize), " RecurrentToCellWeights");
3150 
3151  // Validate data types for MANDATORY weights tensors (all should match each other)
3152  ValidateDataTypes(inputToForgetWeightsInfo, weightsSupportedTypes, descriptorName);
3153 
3154  ValidateTensorDataTypesMatch(inputToForgetWeightsInfo, inputToCellWeightsInfo, descriptorName,
3155  "inputToForgetWeights", "inputToCellWeights");
3156  ValidateTensorDataTypesMatch(inputToForgetWeightsInfo, inputToOutputWeightsInfo, descriptorName,
3157  "inputToForgetWeights", "inputToOutputWeights");
3158 
3159  ValidateTensorDataTypesMatch(inputToForgetWeightsInfo, recurrentToForgetWeightsInfo, descriptorName,
3160  "inputToForgetWeights", "recurrentToForgeteights");
3161  ValidateTensorDataTypesMatch(inputToForgetWeightsInfo, recurrentToCellWeightsInfo, descriptorName,
3162  "inputToForgetWeights", "recurrentToCellWeights");
3163  ValidateTensorDataTypesMatch(inputToForgetWeightsInfo, recurrentToOutputWeightsInfo, descriptorName,
3164  "inputToForgetWeights", "recurrentToOutputWeights");
3165 
3166  // Validate number of dimensions and number of elements for MANDATORY bias tensors
3167  ValidatePointer(m_ForgetGateBias, descriptorName, "ForgetGateBias");
3168  auto forgetGateBiasInfo = m_ForgetGateBias->GetTensorInfo();
3169  ValidateTensorNumDimNumElem(forgetGateBiasInfo, 1, numUnits, " ForgetGateBias");
3170 
3171  ValidatePointer(m_CellBias, descriptorName, "CellBias");
3172  auto cellBiasInfo = m_CellBias->GetTensorInfo();
3173  ValidateTensorNumDimNumElem(cellBiasInfo, 1, numUnits, " CellBias");
3174 
3175  ValidatePointer(m_OutputGateBias, descriptorName, "OutputGateBias");
3176  auto outputGateBiasInfo = m_OutputGateBias->GetTensorInfo();
3177  ValidateTensorNumDimNumElem(outputGateBiasInfo, 1, numUnits, " OutputGateBias");
3178 
3179  // Validate data types for MANDATORY bias tensors
3180  ValidateDataTypes(forgetGateBiasInfo, biasSupportedTypes, descriptorName);
3181 
3182  ValidateTensorDataTypesMatch(forgetGateBiasInfo, cellBiasInfo, descriptorName,
3183  "forgetGateBias", "cellBias");
3184  ValidateTensorDataTypesMatch(forgetGateBiasInfo, outputGateBiasInfo, descriptorName,
3185  "forgetGateBias", "outputGateBias");
3186 
3187  // Validate OPTIONAL params: CIFG (inputToInputWeights, recurrentToInputWeights, inputGateBias)
3188  const bool allCifgParamsPresentOrNot = ((m_InputToInputWeights && m_RecurrentToInputWeights && m_InputGateBias &&
3192 
3193  if (!allCifgParamsPresentOrNot)
3194  {
3195  throw InvalidArgumentException(descriptorName +
3196  ": InputToInputWeights, RecurrentToInputWeights and InputGateBias must either all be present "
3197  "(CIFG disabled) or not be present at all (CIFG enabled). m_Parameters.m_CifgEnabled should be "
3198  "set appropriately.");
3199  }
3200 
3202  {
3203  // Validate number of dimensions and number of elements
3204  auto inputToInputWeightsInfo = m_InputToInputWeights->GetTensorInfo();
3205  ValidateTensorNumDimNumElem(inputToInputWeightsInfo, 2, (numUnits * inputSize), " InputToInputWeights");
3206 
3207  auto recurrentToInputWeightsInfo = m_RecurrentToInputWeights->GetTensorInfo();
3208  ValidateTensorNumDimNumElem(recurrentToInputWeightsInfo, 2, (numUnits * outputSize),
3209  " RecurrentToInputWeights");
3210 
3211  auto inputGateBiasInfo = m_InputGateBias->GetTensorInfo();
3212  ValidateTensorNumDimNumElem(inputGateBiasInfo, 1, numUnits, " InputGateBias");
3213 
3214  // Validate data types
3215  ValidateTensorDataTypesMatch(inputToForgetWeightsInfo, inputToInputWeightsInfo, descriptorName,
3216  "inputToForgetWeights", "inputToInputWeights");
3217  ValidateTensorDataTypesMatch(inputToForgetWeightsInfo, recurrentToInputWeightsInfo, descriptorName,
3218  "inputToForgetWeights", "recurrentToInputWeights");
3219  ValidateTensorDataTypesMatch(forgetGateBiasInfo, inputGateBiasInfo, descriptorName,
3220  "forgetGateBias", "inputGateBias");
3221  }
3222 
3223  // Validate OPTIONAL params: Peephole (cellToInputWeights, cellToForgetWeights, cellToOutputWeights)
3224  bool allPeepholeWeightsPresentOrNot =
3229 
3230  if (!allPeepholeWeightsPresentOrNot)
3231  {
3232  throw InvalidArgumentException(descriptorName +
3233  ": CellToInputWeights, CellToForgetWeights and CellToOutputWeights should all be present (Peephole "
3234  "enabled) or not be present at all (Peephole disabled). CellToInputWeights should only be present "
3235  "when Peephole is enabled and CIFG is disabled. m_Parameters.m_PeepholeEnabled should be set "
3236  "appropriately.");
3237  }
3238 
3240  {
3241  auto cellToForgetWeightsInfo = m_CellToForgetWeights->GetTensorInfo();
3242  ValidateTensorNumDimNumElem(cellToForgetWeightsInfo, 1, numUnits, " cellToForgetWeights");
3243  ValidateDataTypes(cellToForgetWeightsInfo, layerNormPeepholeWeightsSupportedTypes, descriptorName);
3244 
3245  auto cellToOutputWeightsInfo = m_CellToOutputWeights->GetTensorInfo();
3246  ValidateTensorNumDimNumElem(cellToOutputWeightsInfo, 1, numUnits, " cellToOutputWeights");
3247  ValidateTensorDataTypesMatch(cellToForgetWeightsInfo, cellToOutputWeightsInfo, descriptorName,
3248  "cellToForgetWeight", "cellToOutputWeights");
3249 
3251  {
3252  auto cellToInputWeightsInfo = m_CellToInputWeights->GetTensorInfo();
3253  ValidateTensorNumDimNumElem(cellToInputWeightsInfo, 1, numUnits, " cellToInputWeights");
3254  ValidateTensorDataTypesMatch(cellToForgetWeightsInfo, cellToInputWeightsInfo, descriptorName,
3255  "cellToForgetWeights", "cellToInputWeights");
3256  }
3257  }
3258 
3259  // Validate OPTIONAL params: Layer Norm Weights
3260  bool allLayerNormWeightsPresentOrNot =
3265 
3266  if (!allLayerNormWeightsPresentOrNot)
3267  {
3268  throw InvalidArgumentException(descriptorName +
3269  ": InputLayerNormWeights, ForgetLayerNormWeights, m_OutputLayerNormWeights "
3270  "and CellLayerNormWeights should all be present (Layer Norm enabled) or not "
3271  "be present at all (Layer Norm disabled). InputLayerNormWeights should "
3272  "only be present when Layer Norm is enabled and CIFG is disabled. "
3273  "m_Parameters.m_LayerNormEnabled should be set appropriately.");
3274  }
3275 
3277  {
3278  auto forgetLayerNormWeightsInfo = m_ForgetLayerNormWeights->GetTensorInfo();
3279  ValidateTensorNumDimNumElem(forgetLayerNormWeightsInfo, 1, numUnits, " forgetLayerNormWeights");
3280  ValidateDataTypes(forgetLayerNormWeightsInfo, layerNormPeepholeWeightsSupportedTypes, descriptorName);
3281 
3282  auto cellLayerNormWeightsInfo = m_CellLayerNormWeights->GetTensorInfo();
3283  ValidateTensorNumDimNumElem(cellLayerNormWeightsInfo, 1, numUnits, " cellLayerNormWeights");
3284  ValidateTensorDataTypesMatch(forgetLayerNormWeightsInfo, cellLayerNormWeightsInfo, descriptorName,
3285  "forgetLayerNormWeights", "cellLayerNormWeights");
3286 
3287  auto outputLayerNormWeightsInfo = m_OutputLayerNormWeights->GetTensorInfo();
3288  ValidateTensorNumDimNumElem(outputLayerNormWeightsInfo, 1, numUnits, " outputLayerNormWeights");
3289  ValidateTensorDataTypesMatch(forgetLayerNormWeightsInfo, outputLayerNormWeightsInfo, descriptorName,
3290  "forgetLayerNormWeights", "outputLayerNormWeights");
3291 
3293  {
3294  auto inputLayerNormWeightsInfo = m_InputLayerNormWeights->GetTensorInfo();
3295  ValidateTensorNumDimNumElem(inputLayerNormWeightsInfo, 1, numUnits, " inputLayerNormWeights");
3296  ValidateTensorDataTypesMatch(forgetLayerNormWeightsInfo, inputLayerNormWeightsInfo, descriptorName,
3297  "forgetLayerNormWeights", "inputLayerNormWeights");
3298  }
3299  }
3300 
3301  // Validate OPTIONAL params: Projection (projectionWeights, projectionBias)
3302  bool correctProjectionTensorsPresent =
3306 
3307  if (!correctProjectionTensorsPresent)
3308  {
3309  throw InvalidArgumentException(descriptorName +
3310  ": If projection is enabled, ProjectionWeights should be present and "
3311  "ProjectionBias is optional. If projection is disabled, neither "
3312  "ProjectionWeights nor ProjectionBias should be present.");
3313  }
3314 
3316  {
3317  auto projectionWeightsInfo = m_ProjectionWeights->GetTensorInfo();
3318  ValidateTensorNumDimNumElem(projectionWeightsInfo, 2, (numUnits * outputSize), "ProjectionWeights");
3319  ValidateDataTypes(projectionWeightsInfo, weightsSupportedTypes, descriptorName);
3320 
3321  if (m_ProjectionBias)
3322  {
3323  auto projectionBiasInfo = m_ProjectionBias->GetTensorInfo();
3324  ValidateTensorNumDimNumElem(projectionBiasInfo, 1, outputSize, "ProjectionBias");
3325  ValidateDataTypes(projectionBiasInfo, biasSupportedTypes, descriptorName);
3326  }
3327 
3328  }
3329  else if ((outputInfo.GetQuantizationScale() != m_Parameters.m_HiddenStateScale) &&
3330  outputInfo.GetQuantizationOffset() != m_Parameters.m_HiddenStateZeroPoint) {
3331  throw InvalidArgumentException(descriptorName +
3332  ": If projection is disabled, output quantization info (scale, offset) "
3333  "should match HiddenStateScale and HiddenStateZeroPoint.");
3334  }
3335 
3336 }

References TensorInfo::GetQuantizationOffset(), TensorInfo::GetQuantizationScale(), TensorInfo::GetShape(), ConstTensorHandle::GetTensorInfo(), QLstmQueueDescriptor::m_CellBias, QLstmQueueDescriptor::m_CellLayerNormWeights, QLstmQueueDescriptor::m_CellToForgetWeights, QLstmQueueDescriptor::m_CellToInputWeights, QLstmQueueDescriptor::m_CellToOutputWeights, QLstmDescriptor::m_CifgEnabled, QLstmQueueDescriptor::m_ForgetGateBias, QLstmQueueDescriptor::m_ForgetLayerNormWeights, QLstmDescriptor::m_HiddenStateScale, QLstmDescriptor::m_HiddenStateZeroPoint, QLstmQueueDescriptor::m_InputGateBias, QLstmQueueDescriptor::m_InputLayerNormWeights, WorkloadInfo::m_InputTensorInfos, QLstmQueueDescriptor::m_InputToCellWeights, QLstmQueueDescriptor::m_InputToForgetWeights, QLstmQueueDescriptor::m_InputToInputWeights, QLstmQueueDescriptor::m_InputToOutputWeights, QLstmDescriptor::m_LayerNormEnabled, QLstmQueueDescriptor::m_OutputGateBias, QLstmQueueDescriptor::m_OutputLayerNormWeights, WorkloadInfo::m_OutputTensorInfos, QueueDescriptorWithParameters< QLstmDescriptor >::m_Parameters, QLstmDescriptor::m_PeepholeEnabled, QLstmQueueDescriptor::m_ProjectionBias, QLstmDescriptor::m_ProjectionEnabled, QLstmQueueDescriptor::m_ProjectionWeights, QLstmQueueDescriptor::m_RecurrentToCellWeights, QLstmQueueDescriptor::m_RecurrentToForgetWeights, QLstmQueueDescriptor::m_RecurrentToInputWeights, QLstmQueueDescriptor::m_RecurrentToOutputWeights, armnn::QAsymmS8, armnn::QSymmS16, armnn::QSymmS8, armnn::Signed32, and QueueDescriptor::ValidateTensorNumDimNumElem().

Member Data Documentation

◆ m_CellBias

const ConstTensorHandle* m_CellBias

Definition at line 597 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_CellLayerNormWeights

const ConstTensorHandle* m_CellLayerNormWeights

Definition at line 603 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_CellToForgetWeights

const ConstTensorHandle* m_CellToForgetWeights

Definition at line 593 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_CellToInputWeights

const ConstTensorHandle* m_CellToInputWeights

Definition at line 592 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_CellToOutputWeights

const ConstTensorHandle* m_CellToOutputWeights

Definition at line 594 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_ForgetGateBias

const ConstTensorHandle* m_ForgetGateBias

Definition at line 596 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_ForgetLayerNormWeights

const ConstTensorHandle* m_ForgetLayerNormWeights

Definition at line 602 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_InputGateBias

const ConstTensorHandle* m_InputGateBias

Definition at line 595 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_InputLayerNormWeights

const ConstTensorHandle* m_InputLayerNormWeights

Definition at line 601 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_InputToCellWeights

const ConstTensorHandle* m_InputToCellWeights

Definition at line 586 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_InputToForgetWeights

const ConstTensorHandle* m_InputToForgetWeights

Definition at line 585 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_InputToInputWeights

const ConstTensorHandle* m_InputToInputWeights

Definition at line 584 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_InputToOutputWeights

const ConstTensorHandle* m_InputToOutputWeights

Definition at line 587 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_OutputGateBias

const ConstTensorHandle* m_OutputGateBias

Definition at line 598 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_OutputLayerNormWeights

const ConstTensorHandle* m_OutputLayerNormWeights

Definition at line 604 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_ProjectionBias

const ConstTensorHandle* m_ProjectionBias

Definition at line 600 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_ProjectionWeights

const ConstTensorHandle* m_ProjectionWeights

Definition at line 599 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_RecurrentToCellWeights

const ConstTensorHandle* m_RecurrentToCellWeights

Definition at line 590 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_RecurrentToForgetWeights

const ConstTensorHandle* m_RecurrentToForgetWeights

Definition at line 589 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_RecurrentToInputWeights

const ConstTensorHandle* m_RecurrentToInputWeights

Definition at line 588 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().

◆ m_RecurrentToOutputWeights

const ConstTensorHandle* m_RecurrentToOutputWeights

Definition at line 591 of file WorkloadData.hpp.

Referenced by QLstmLayer::CreateWorkload(), and QLstmQueueDescriptor::Validate().


The documentation for this struct was generated from the following files:
armnn::QLstmDescriptor::m_LayerNormEnabled
bool m_LayerNormEnabled
Enable/disable layer normalization.
Definition: Descriptors.hpp:1391
armnn::QLstmQueueDescriptor::m_RecurrentToForgetWeights
const ConstTensorHandle * m_RecurrentToForgetWeights
Definition: WorkloadData.hpp:589
armnn::QueueDescriptor::ValidateTensorNumDimNumElem
void ValidateTensorNumDimNumElem(const TensorInfo &tensorInfo, unsigned int numDimension, unsigned int numElements, std::string const &tensorName) const
Definition: WorkloadData.cpp:461
armnn::QLstmQueueDescriptor::m_OutputGateBias
const ConstTensorHandle * m_OutputGateBias
Definition: WorkloadData.hpp:598
armnn::DataType::Signed32
@ Signed32
armnn::QLstmQueueDescriptor::m_InputToOutputWeights
const ConstTensorHandle * m_InputToOutputWeights
Definition: WorkloadData.hpp:587
armnn::DataType::QAsymmS8
@ QAsymmS8
armnn::QLstmQueueDescriptor::m_ProjectionBias
const ConstTensorHandle * m_ProjectionBias
Definition: WorkloadData.hpp:600
armnn::QLstmQueueDescriptor::m_CellBias
const ConstTensorHandle * m_CellBias
Definition: WorkloadData.hpp:597
armnn::QLstmQueueDescriptor::m_ForgetGateBias
const ConstTensorHandle * m_ForgetGateBias
Definition: WorkloadData.hpp:596
armnn::WorkloadInfo::m_OutputTensorInfos
std::vector< TensorInfo > m_OutputTensorInfos
Definition: WorkloadInfo.hpp:19
armnn::QLstmQueueDescriptor::m_InputToForgetWeights
const ConstTensorHandle * m_InputToForgetWeights
Definition: WorkloadData.hpp:585
armnn::QLstmQueueDescriptor::m_ForgetLayerNormWeights
const ConstTensorHandle * m_ForgetLayerNormWeights
Definition: WorkloadData.hpp:602
armnn::QLstmQueueDescriptor::m_CellToInputWeights
const ConstTensorHandle * m_CellToInputWeights
Definition: WorkloadData.hpp:592
armnn::QLstmQueueDescriptor::m_ProjectionWeights
const ConstTensorHandle * m_ProjectionWeights
Definition: WorkloadData.hpp:599
armnn::QLstmQueueDescriptor::m_RecurrentToInputWeights
const ConstTensorHandle * m_RecurrentToInputWeights
Definition: WorkloadData.hpp:588
armnn::ConstTensorHandle::GetTensorInfo
const TensorInfo & GetTensorInfo() const
Definition: TensorHandle.hpp:40
armnn::QLstmDescriptor::m_HiddenStateScale
float m_HiddenStateScale
Hidden State quantization scale.
Definition: Descriptors.hpp:1403
armnn::QLstmDescriptor::m_HiddenStateZeroPoint
int32_t m_HiddenStateZeroPoint
Hidden State zero point.
Definition: Descriptors.hpp:1401
armnn::QLstmQueueDescriptor::m_CellToOutputWeights
const ConstTensorHandle * m_CellToOutputWeights
Definition: WorkloadData.hpp:594
armnn::QLstmQueueDescriptor::m_OutputLayerNormWeights
const ConstTensorHandle * m_OutputLayerNormWeights
Definition: WorkloadData.hpp:604
armnn::QueueDescriptorWithParameters< QLstmDescriptor >::m_Parameters
QLstmDescriptor m_Parameters
Definition: WorkloadData.hpp:66
armnn::QLstmQueueDescriptor::m_CellLayerNormWeights
const ConstTensorHandle * m_CellLayerNormWeights
Definition: WorkloadData.hpp:603
armnn::QLstmQueueDescriptor::m_InputToCellWeights
const ConstTensorHandle * m_InputToCellWeights
Definition: WorkloadData.hpp:586
armnn::QLstmQueueDescriptor::m_RecurrentToOutputWeights
const ConstTensorHandle * m_RecurrentToOutputWeights
Definition: WorkloadData.hpp:591
armnn::DataType::QSymmS8
@ QSymmS8
armnn::QLstmDescriptor::m_CifgEnabled
bool m_CifgEnabled
Enable/disable CIFG (coupled input & forget gate).
Definition: Descriptors.hpp:1385
armnn::QLstmQueueDescriptor::m_CellToForgetWeights
const ConstTensorHandle * m_CellToForgetWeights
Definition: WorkloadData.hpp:593
armnn::DataType::QSymmS16
@ QSymmS16
armnn::QLstmDescriptor::m_PeepholeEnabled
bool m_PeepholeEnabled
Enable/disable peephole.
Definition: Descriptors.hpp:1387
armnn::QLstmQueueDescriptor::m_InputToInputWeights
const ConstTensorHandle * m_InputToInputWeights
Definition: WorkloadData.hpp:584
armnn::QLstmQueueDescriptor::m_RecurrentToCellWeights
const ConstTensorHandle * m_RecurrentToCellWeights
Definition: WorkloadData.hpp:590
armnn::InvalidArgumentException
Definition: Exceptions.hpp:80
armnn::QLstmQueueDescriptor::m_InputGateBias
const ConstTensorHandle * m_InputGateBias
Definition: WorkloadData.hpp:595
armnn::QLstmDescriptor::m_ProjectionEnabled
bool m_ProjectionEnabled
Enable/disable the projection layer.
Definition: Descriptors.hpp:1389
armnn::QLstmQueueDescriptor::m_InputLayerNormWeights
const ConstTensorHandle * m_InputLayerNormWeights
Definition: WorkloadData.hpp:601
armnn::WorkloadInfo::m_InputTensorInfos
std::vector< TensorInfo > m_InputTensorInfos
Definition: WorkloadInfo.hpp:18