ArmNN
 24.08
LstmQueueDescriptor Struct Reference

#include <WorkloadData.hpp>

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

Public Member Functions

 LstmQueueDescriptor ()
 
void Validate (const WorkloadInfo &workloadInfo) const
 
- Public Member Functions inherited from QueueDescriptorWithParameters< LstmDescriptor >
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< LstmDescriptor >
LstmDescriptor 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< LstmDescriptor >
 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 400 of file WorkloadData.hpp.

Constructor & Destructor Documentation

◆ LstmQueueDescriptor()

LstmQueueDescriptor ( )
inline

Definition at line 402 of file WorkloadData.hpp.

403  : m_InputToInputWeights(nullptr)
404  , m_InputToForgetWeights(nullptr)
405  , m_InputToCellWeights(nullptr)
406  , m_InputToOutputWeights(nullptr)
407  , m_RecurrentToInputWeights(nullptr)
408  , m_RecurrentToForgetWeights(nullptr)
409  , m_RecurrentToCellWeights(nullptr)
410  , m_RecurrentToOutputWeights(nullptr)
411  , m_CellToInputWeights(nullptr)
412  , m_CellToForgetWeights(nullptr)
413  , m_CellToOutputWeights(nullptr)
414  , m_InputGateBias(nullptr)
415  , m_ForgetGateBias(nullptr)
416  , m_CellBias(nullptr)
417  , m_OutputGateBias(nullptr)
418  , m_ProjectionWeights(nullptr)
419  , m_ProjectionBias(nullptr)
420  , m_InputLayerNormWeights(nullptr)
421  , m_ForgetLayerNormWeights(nullptr)
422  , m_CellLayerNormWeights(nullptr)
423  , m_OutputLayerNormWeights(nullptr)
424  {
425  }

Member Function Documentation

◆ Validate()

void Validate ( const WorkloadInfo workloadInfo) const

Definition at line 2014 of file WorkloadData.cpp.

2015 {
2016  // ported from android/ml/nn/common/operations/LSTM.cpp CheckInputTensorDimensions()
2017 
2018  const std::string descriptorName{"LstmQueueDescriptor"};
2019 
2020  // check dimensions of all inputs and outputs
2021  if (workloadInfo.m_InputTensorInfos.size() != 3)
2022  {
2023  throw InvalidArgumentException(descriptorName + ": Invalid number of inputs.");
2024  }
2025  if (workloadInfo.m_OutputTensorInfos.size() != 4)
2026  {
2027  throw InvalidArgumentException(descriptorName + ": Invalid number of outputs.");
2028  }
2029 
2030  std::vector<DataType> supportedTypes =
2031  {
2036  };
2037 
2038  // check for supported type of one input and match them with all the other input and output
2039  ValidateDataTypes(workloadInfo.m_InputTensorInfos[0], supportedTypes, descriptorName);
2040 
2041  // type matches all other inputs
2042  for (uint32_t i = 1u; i < workloadInfo.m_InputTensorInfos.size(); ++i)
2043  {
2044  ValidateTensorDataTypesMatch(workloadInfo.m_InputTensorInfos[0],
2045  workloadInfo.m_InputTensorInfos[i],
2046  descriptorName,
2047  "input_0",
2048  "input_" + std::to_string(i));
2049  }
2050  // type matches all other outputs
2051  for (uint32_t i = 0u; i < workloadInfo.m_OutputTensorInfos.size(); ++i)
2052  {
2053  ValidateTensorDataTypesMatch(workloadInfo.m_InputTensorInfos[0],
2054  workloadInfo.m_OutputTensorInfos[i],
2055  "LstmQueueDescriptor",
2056  "input_0",
2057  "output_" + std::to_string(i));
2058  }
2059 
2060  // Making sure clipping parameters have valid values.
2061  // == 0 means no clipping
2062  // > 0 means clipping
2063  if (m_Parameters.m_ClippingThresCell < 0.0f)
2064  {
2065  throw InvalidArgumentException(descriptorName + ": negative cell clipping threshold is invalid");
2066  }
2067  if (m_Parameters.m_ClippingThresProj < 0.0f)
2068  {
2069  throw InvalidArgumentException(descriptorName + ": negative projection clipping threshold is invalid");
2070  }
2071 
2072  // Inferring batch size, number of outputs and number of cells from the inputs.
2073  const uint32_t n_input = workloadInfo.m_InputTensorInfos[0].GetShape()[1];
2074  const uint32_t n_batch = workloadInfo.m_InputTensorInfos[0].GetShape()[0];
2075  ValidatePointer(m_InputToOutputWeights, "Null pointer check", "InputToOutputWeights");
2076  const uint32_t n_cell = m_InputToOutputWeights->GetShape()[0];
2077  ValidatePointer(m_RecurrentToOutputWeights, "Null pointer check", "RecurrentToOutputWeights");
2078  const uint32_t n_output = m_RecurrentToOutputWeights->GetShape()[1];
2079 
2080  // input tensor
2081  ValidateTensorNumDimNumElem(workloadInfo.m_InputTensorInfos[0], 2, (n_batch * n_input),
2082  descriptorName + " input_0");
2083  // outputStateInTensor
2084  ValidateTensorNumDimNumElem(workloadInfo.m_InputTensorInfos[1], 2, (n_batch * n_output),
2085  descriptorName + " input_1");
2086  // outputStateInTensor
2087  ValidateTensorNumDimNumElem(workloadInfo.m_InputTensorInfos[2], 2, (n_batch * n_cell),
2088  descriptorName + " input_2");
2089  // scratchBufferTensor
2090  unsigned int scratchBufferSize = m_Parameters.m_CifgEnabled ? n_cell * 3 : n_cell * 4;
2091  ValidateTensorNumDimNumElem(workloadInfo.m_OutputTensorInfos[0], 2, (n_batch * scratchBufferSize),
2092  descriptorName + " output_0");
2093  // outputStateOutTensor
2094  ValidateTensorNumDimNumElem(workloadInfo.m_OutputTensorInfos[1], 2, (n_batch * n_output),
2095  descriptorName + " output_1");
2096  // cellStateOutTensor
2097  ValidateTensorNumDimNumElem(workloadInfo.m_OutputTensorInfos[2], 2, (n_batch * n_cell),
2098  descriptorName + " output_2");
2099  // outputTensor
2100  ValidateTensorNumDimNumElem(workloadInfo.m_OutputTensorInfos[3], 2, (n_batch * n_output),
2101  descriptorName + " output_3");
2102 
2103  // check that dimensions of inputs/outputs and QueueDescriptor data match with each other
2104  if ( m_InputToInputWeights )
2105  {
2107  (n_cell * n_input), "InputLayerNormWeights");
2108  }
2109 
2110  ValidatePointer(m_InputToForgetWeights, "Null pointer check", "InputToForgetWeights");
2112  (n_cell * n_input), "InputToForgetWeights");
2113 
2114  ValidatePointer(m_InputToCellWeights, "Null pointer check", "InputToCellWeights");
2116  (n_cell * n_input), "InputToCellWeights");
2117 
2119  {
2121  (n_cell * n_output), "RecurrentToInputWeights");
2122  }
2123 
2124  ValidatePointer(m_RecurrentToForgetWeights, "Null pointer check", "RecurrentToForgetWeights");
2126  (n_cell * n_output), "RecurrentToForgetWeights");
2127 
2128  ValidatePointer(m_RecurrentToCellWeights, "Null pointer check", "RecurrentToCellWeights");
2130  (n_cell * n_output), "RecurrentToCellWeights");
2131 
2132  // Make sure the input-gate's parameters are either both present (regular
2133  // LSTM) or not at all (CIFG-LSTM). And CifgEnable is set accordingly.
2134  bool cifg_weights_all_or_none = ((m_InputToInputWeights && m_RecurrentToInputWeights &&
2138  if (!cifg_weights_all_or_none)
2139  {
2140  throw InvalidArgumentException(descriptorName + ": Input-Gate's parameters InputToInputWeights and "
2141  "RecurrentToInputWeights must either both be present (regular LSTM) "
2142  "or both not present (CIFG-LSTM). In addition CifgEnable must be set "
2143  "accordingly.");
2144  }
2145 
2146  if ( m_CellToInputWeights )
2147  {
2149  n_cell, "CellToInputWeights");
2150  }
2151  if ( m_CellToForgetWeights )
2152  {
2154  n_cell, "CellToForgetWeights");
2155  }
2156  if ( m_CellToOutputWeights )
2157  {
2159  n_cell, "CellToOutputWeights");
2160  }
2161 
2162  // Making sure the peephole weights are there all or none. And PeepholeEnable is set accordingly.
2163  bool peephole_weights_all_or_none =
2168  if (!peephole_weights_all_or_none)
2169  {
2170  throw InvalidArgumentException(descriptorName + ": Invalid combination of peephole parameters.");
2171  }
2172 
2173  // Make sure the input gate bias is present only when not a CIFG-LSTM.
2175  {
2176  if (m_InputGateBias)
2177  {
2178  throw InvalidArgumentException(descriptorName + ": InputGateBias is present and CIFG-LSTM is enabled.");
2179  }
2180  }
2181  else
2182  {
2183  if (!m_InputGateBias)
2184  {
2185  throw InvalidArgumentException(descriptorName + ": If CIFG-LSTM is disabled InputGateBias "
2186  "must be present.");
2187  }
2189  n_cell, "InputGateBias");
2190  }
2191 
2192  ValidatePointer(m_ForgetGateBias, "Null pointer check", "ForgetGateBias");
2193  ValidateTensorNumDimNumElem(m_ForgetGateBias->GetTensorInfo(), 1, n_cell, "ForgetGateBias");
2194 
2195  ValidatePointer(m_CellBias, "Null pointer check", "CellBias");
2196  ValidateTensorNumDimNumElem(m_CellBias->GetTensorInfo(), 1, n_cell, "CellBias");
2197 
2198  ValidatePointer(m_OutputGateBias, "Null pointer check", "OutputGateBias");
2199  ValidateTensorNumDimNumElem(m_OutputGateBias->GetTensorInfo(), 1, n_cell, "OutputGateBias");
2200 
2201  if (m_ProjectionWeights)
2202  {
2204  (n_cell * n_output), "ProjectionWeights");
2205  }
2206  if (m_ProjectionBias)
2207  {
2208  ValidateTensorNumDimNumElem(m_ProjectionBias->GetTensorInfo(), 1, n_output, "ProjectionBias");
2209  }
2210 
2211  // Making sure the projection tensors are consistent:
2212  // 1) If projection weight is not present, then projection bias should not be
2213  // present.
2214  // 2) If projection weight is present, then projection bias is optional.
2215  bool projecton_tensors_consistent = ((!m_ProjectionWeights && !m_ProjectionBias &&
2221  if (!projecton_tensors_consistent)
2222  {
2223  throw InvalidArgumentException(descriptorName + ": Projection tensors are inconsistent.");
2224  }
2225 
2226  // The four layer normalization weights either all have values or none of them have values. Additionally, if
2227  // CIFG is used, input layer normalization weights tensor is omitted and the other layer normalization weights
2228  // either all have values or none of them have values. Layer normalization is used when the values of all the
2229  // layer normalization weights are present
2231  {
2232  ValidateTensorNumDimNumElem(m_InputLayerNormWeights->GetTensorInfo(), 1, n_cell, "InputLayerNormWeights");
2233  }
2235  {
2236  ValidateTensorNumDimNumElem(m_ForgetLayerNormWeights->GetTensorInfo(), 1, n_cell, "ForgetLayerNormWeights");
2237  }
2239  {
2240  ValidateTensorNumDimNumElem(m_CellLayerNormWeights->GetTensorInfo(), 1, n_cell, "CellLayerNormWeights");
2241  }
2243  {
2244  ValidateTensorNumDimNumElem(m_OutputLayerNormWeights->GetTensorInfo(), 1, n_cell, "OutputLayerNormWeights");
2245  }
2246 
2248  {
2250  {
2252  {
2253  throw InvalidArgumentException(descriptorName + ": Layer normalisation is enabled and CIFG-LSTM is "
2254  "disabled but InputLayerNormWeights are not present");
2255  }
2257  1, n_cell, "InputLayerNormWeights");
2258  }
2259  else if (m_InputLayerNormWeights)
2260  {
2261  throw InvalidArgumentException(descriptorName + ":InputLayerNormWeights are present while CIFG is "
2262  "enabled");
2263  }
2264 
2265  ValidatePointer(m_ForgetLayerNormWeights, "Null pointer check layer normalisation enabled",
2266  "ForgetLayerNormWeights");
2267  ValidateTensorNumDimNumElem(m_ForgetLayerNormWeights->GetTensorInfo(), 1, n_cell, "ForgetLayerNormWeights");
2268 
2269  ValidatePointer(m_OutputLayerNormWeights, "Null pointer check layer normalisation enabled",
2270  "OutputLayerNormWeights");
2271  ValidateTensorNumDimNumElem(m_OutputLayerNormWeights->GetTensorInfo(), 1, n_cell, "OutputLayerNormWeights");
2272 
2273  ValidatePointer(m_CellLayerNormWeights, "Null pointer check layer normalisation enabled",
2274  "CellLayerNormWeights");
2275  ValidateTensorNumDimNumElem(m_CellLayerNormWeights->GetTensorInfo(), 1, n_cell, "CellLayerNormWeights");
2276  }
2278  {
2279  throw InvalidArgumentException(descriptorName + ": Layer normalisation is disabled but one or more layer "
2280  "normalisation weights are present.");
2281  }
2282 }

References armnn::BFloat16, armnn::Float16, armnn::Float32, ConstTensorHandle::GetShape(), ConstTensorHandle::GetTensorInfo(), LstmQueueDescriptor::m_CellBias, LstmQueueDescriptor::m_CellLayerNormWeights, LstmQueueDescriptor::m_CellToForgetWeights, LstmQueueDescriptor::m_CellToInputWeights, LstmQueueDescriptor::m_CellToOutputWeights, LstmDescriptor::m_CifgEnabled, LstmDescriptor::m_ClippingThresCell, LstmDescriptor::m_ClippingThresProj, LstmQueueDescriptor::m_ForgetGateBias, LstmQueueDescriptor::m_ForgetLayerNormWeights, LstmQueueDescriptor::m_InputGateBias, LstmQueueDescriptor::m_InputLayerNormWeights, WorkloadInfo::m_InputTensorInfos, LstmQueueDescriptor::m_InputToCellWeights, LstmQueueDescriptor::m_InputToForgetWeights, LstmQueueDescriptor::m_InputToInputWeights, LstmQueueDescriptor::m_InputToOutputWeights, LstmDescriptor::m_LayerNormEnabled, LstmQueueDescriptor::m_OutputGateBias, LstmQueueDescriptor::m_OutputLayerNormWeights, WorkloadInfo::m_OutputTensorInfos, QueueDescriptorWithParameters< LstmDescriptor >::m_Parameters, LstmDescriptor::m_PeepholeEnabled, LstmQueueDescriptor::m_ProjectionBias, LstmDescriptor::m_ProjectionEnabled, LstmQueueDescriptor::m_ProjectionWeights, LstmQueueDescriptor::m_RecurrentToCellWeights, LstmQueueDescriptor::m_RecurrentToForgetWeights, LstmQueueDescriptor::m_RecurrentToInputWeights, LstmQueueDescriptor::m_RecurrentToOutputWeights, armnn::QSymmS16, and QueueDescriptor::ValidateTensorNumDimNumElem().

Member Data Documentation

◆ m_CellBias

const ConstTensorHandle* m_CellBias

Definition at line 440 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_CellLayerNormWeights

const ConstTensorHandle* m_CellLayerNormWeights

Definition at line 446 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_CellToForgetWeights

const ConstTensorHandle* m_CellToForgetWeights

Definition at line 436 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_CellToInputWeights

const ConstTensorHandle* m_CellToInputWeights

Definition at line 435 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_CellToOutputWeights

const ConstTensorHandle* m_CellToOutputWeights

Definition at line 437 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_ForgetGateBias

const ConstTensorHandle* m_ForgetGateBias

Definition at line 439 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_ForgetLayerNormWeights

const ConstTensorHandle* m_ForgetLayerNormWeights

Definition at line 445 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_InputGateBias

const ConstTensorHandle* m_InputGateBias

Definition at line 438 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_InputLayerNormWeights

const ConstTensorHandle* m_InputLayerNormWeights

Definition at line 444 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_InputToCellWeights

const ConstTensorHandle* m_InputToCellWeights

Definition at line 429 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_InputToForgetWeights

const ConstTensorHandle* m_InputToForgetWeights

Definition at line 428 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_InputToInputWeights

const ConstTensorHandle* m_InputToInputWeights

Definition at line 427 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_InputToOutputWeights

const ConstTensorHandle* m_InputToOutputWeights

Definition at line 430 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_OutputGateBias

const ConstTensorHandle* m_OutputGateBias

Definition at line 441 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_OutputLayerNormWeights

const ConstTensorHandle* m_OutputLayerNormWeights

Definition at line 447 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_ProjectionBias

const ConstTensorHandle* m_ProjectionBias

Definition at line 443 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_ProjectionWeights

const ConstTensorHandle* m_ProjectionWeights

Definition at line 442 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_RecurrentToCellWeights

const ConstTensorHandle* m_RecurrentToCellWeights

Definition at line 433 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_RecurrentToForgetWeights

const ConstTensorHandle* m_RecurrentToForgetWeights

Definition at line 432 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_RecurrentToInputWeights

const ConstTensorHandle* m_RecurrentToInputWeights

Definition at line 431 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().

◆ m_RecurrentToOutputWeights

const ConstTensorHandle* m_RecurrentToOutputWeights

Definition at line 434 of file WorkloadData.hpp.

Referenced by LstmLayer::CreateWorkload(), and LstmQueueDescriptor::Validate().


The documentation for this struct was generated from the following files:
armnn::LstmQueueDescriptor::m_ForgetLayerNormWeights
const ConstTensorHandle * m_ForgetLayerNormWeights
Definition: WorkloadData.hpp:445
armnn::LstmQueueDescriptor::m_CellBias
const ConstTensorHandle * m_CellBias
Definition: WorkloadData.hpp:440
armnn::ConstTensorHandle::GetShape
TensorShape GetShape() const override
Get the number of elements for each dimension ordered from slowest iterating dimension to fastest ite...
Definition: TensorHandle.hpp:56
armnn::LstmQueueDescriptor::m_InputToInputWeights
const ConstTensorHandle * m_InputToInputWeights
Definition: WorkloadData.hpp:427
armnn::LstmQueueDescriptor::m_ForgetGateBias
const ConstTensorHandle * m_ForgetGateBias
Definition: WorkloadData.hpp:439
armnn::LstmQueueDescriptor::m_InputToForgetWeights
const ConstTensorHandle * m_InputToForgetWeights
Definition: WorkloadData.hpp:428
armnn::DataType::Float32
@ Float32
armnn::ConstTensorHandle::GetTensorInfo
const TensorInfo & GetTensorInfo() const
Definition: TensorHandle.hpp:40
armnn::LstmQueueDescriptor::m_InputToCellWeights
const ConstTensorHandle * m_InputToCellWeights
Definition: WorkloadData.hpp:429
armnn::DataType::QSymmS16
@ QSymmS16
armnn::DataType::BFloat16
@ BFloat16
armnn::LstmQueueDescriptor::m_CellToOutputWeights
const ConstTensorHandle * m_CellToOutputWeights
Definition: WorkloadData.hpp:437
armnn::LstmDescriptor::m_PeepholeEnabled
bool m_PeepholeEnabled
Enable/disable peephole.
Definition: Descriptors.hpp:1148
armnn::DataType::Float16
@ Float16
armnn::WorkloadInfo::m_OutputTensorInfos
std::vector< TensorInfo > m_OutputTensorInfos
Definition: WorkloadInfo.hpp:19
armnn::LstmDescriptor::m_ClippingThresProj
float m_ClippingThresProj
Clipping threshold value for the projection.
Definition: Descriptors.hpp:1144
armnn::QueueDescriptorWithParameters< LstmDescriptor >::m_Parameters
LstmDescriptor m_Parameters
Definition: WorkloadData.hpp:66
armnn::InvalidArgumentException
Definition: Exceptions.hpp:80
armnn::LstmQueueDescriptor::m_InputGateBias
const ConstTensorHandle * m_InputGateBias
Definition: WorkloadData.hpp:438
armnn::LstmQueueDescriptor::m_RecurrentToCellWeights
const ConstTensorHandle * m_RecurrentToCellWeights
Definition: WorkloadData.hpp:433
armnn::LstmQueueDescriptor::m_CellLayerNormWeights
const ConstTensorHandle * m_CellLayerNormWeights
Definition: WorkloadData.hpp:446
armnn::LstmDescriptor::m_CifgEnabled
bool m_CifgEnabled
Enable/disable cifg (coupled input & forget gate).
Definition: Descriptors.hpp:1146
armnn::LstmQueueDescriptor::m_RecurrentToOutputWeights
const ConstTensorHandle * m_RecurrentToOutputWeights
Definition: WorkloadData.hpp:434
armnn::LstmQueueDescriptor::m_InputLayerNormWeights
const ConstTensorHandle * m_InputLayerNormWeights
Definition: WorkloadData.hpp:444
armnn::LstmDescriptor::m_LayerNormEnabled
bool m_LayerNormEnabled
Enable/disable layer normalization.
Definition: Descriptors.hpp:1152
armnn::LstmQueueDescriptor::m_RecurrentToForgetWeights
const ConstTensorHandle * m_RecurrentToForgetWeights
Definition: WorkloadData.hpp:432
armnn::WorkloadInfo::m_InputTensorInfos
std::vector< TensorInfo > m_InputTensorInfos
Definition: WorkloadInfo.hpp:18
armnn::LstmQueueDescriptor::m_ProjectionWeights
const ConstTensorHandle * m_ProjectionWeights
Definition: WorkloadData.hpp:442
armnn::LstmQueueDescriptor::m_CellToInputWeights
const ConstTensorHandle * m_CellToInputWeights
Definition: WorkloadData.hpp:435
armnn::LstmQueueDescriptor::m_RecurrentToInputWeights
const ConstTensorHandle * m_RecurrentToInputWeights
Definition: WorkloadData.hpp:431
armnn::LstmDescriptor::m_ProjectionEnabled
bool m_ProjectionEnabled
Enable/disable the projection layer.
Definition: Descriptors.hpp:1150
armnn::LstmQueueDescriptor::m_ProjectionBias
const ConstTensorHandle * m_ProjectionBias
Definition: WorkloadData.hpp:443
armnn::LstmQueueDescriptor::m_OutputGateBias
const ConstTensorHandle * m_OutputGateBias
Definition: WorkloadData.hpp:441
armnn::QueueDescriptor::ValidateTensorNumDimNumElem
void ValidateTensorNumDimNumElem(const TensorInfo &tensorInfo, unsigned int numDimension, unsigned int numElements, std::string const &tensorName) const
Definition: WorkloadData.cpp:436
armnn::LstmQueueDescriptor::m_CellToForgetWeights
const ConstTensorHandle * m_CellToForgetWeights
Definition: WorkloadData.hpp:436
armnn::LstmQueueDescriptor::m_InputToOutputWeights
const ConstTensorHandle * m_InputToOutputWeights
Definition: WorkloadData.hpp:430
armnn::LstmDescriptor::m_ClippingThresCell
float m_ClippingThresCell
Clipping threshold value for the cell state.
Definition: Descriptors.hpp:1142
armnn::LstmQueueDescriptor::m_OutputLayerNormWeights
const ConstTensorHandle * m_OutputLayerNormWeights
Definition: WorkloadData.hpp:447