ArmNN
 23.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 395 of file WorkloadData.hpp.

Constructor & Destructor Documentation

◆ LstmQueueDescriptor()

LstmQueueDescriptor ( )
inline

Definition at line 397 of file WorkloadData.hpp.

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

Member Function Documentation

◆ Validate()

void Validate ( const WorkloadInfo workloadInfo) const

Definition at line 2005 of file WorkloadData.cpp.

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

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 435 of file WorkloadData.hpp.

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

◆ m_CellLayerNormWeights

const ConstTensorHandle* m_CellLayerNormWeights

Definition at line 441 of file WorkloadData.hpp.

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

◆ m_CellToForgetWeights

const ConstTensorHandle* m_CellToForgetWeights

Definition at line 431 of file WorkloadData.hpp.

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

◆ m_CellToInputWeights

const ConstTensorHandle* m_CellToInputWeights

Definition at line 430 of file WorkloadData.hpp.

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

◆ m_CellToOutputWeights

const ConstTensorHandle* m_CellToOutputWeights

Definition at line 432 of file WorkloadData.hpp.

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

◆ m_ForgetGateBias

const ConstTensorHandle* m_ForgetGateBias

Definition at line 434 of file WorkloadData.hpp.

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

◆ m_ForgetLayerNormWeights

const ConstTensorHandle* m_ForgetLayerNormWeights

Definition at line 440 of file WorkloadData.hpp.

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

◆ m_InputGateBias

const ConstTensorHandle* m_InputGateBias

Definition at line 433 of file WorkloadData.hpp.

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

◆ m_InputLayerNormWeights

const ConstTensorHandle* m_InputLayerNormWeights

Definition at line 439 of file WorkloadData.hpp.

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

◆ m_InputToCellWeights

const ConstTensorHandle* m_InputToCellWeights

Definition at line 424 of file WorkloadData.hpp.

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

◆ m_InputToForgetWeights

const ConstTensorHandle* m_InputToForgetWeights

Definition at line 423 of file WorkloadData.hpp.

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

◆ m_InputToInputWeights

const ConstTensorHandle* m_InputToInputWeights

Definition at line 422 of file WorkloadData.hpp.

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

◆ m_InputToOutputWeights

const ConstTensorHandle* m_InputToOutputWeights

Definition at line 425 of file WorkloadData.hpp.

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

◆ m_OutputGateBias

const ConstTensorHandle* m_OutputGateBias

Definition at line 436 of file WorkloadData.hpp.

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

◆ m_OutputLayerNormWeights

const ConstTensorHandle* m_OutputLayerNormWeights

Definition at line 442 of file WorkloadData.hpp.

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

◆ m_ProjectionBias

const ConstTensorHandle* m_ProjectionBias

Definition at line 438 of file WorkloadData.hpp.

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

◆ m_ProjectionWeights

const ConstTensorHandle* m_ProjectionWeights

Definition at line 437 of file WorkloadData.hpp.

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

◆ m_RecurrentToCellWeights

const ConstTensorHandle* m_RecurrentToCellWeights

Definition at line 428 of file WorkloadData.hpp.

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

◆ m_RecurrentToForgetWeights

const ConstTensorHandle* m_RecurrentToForgetWeights

Definition at line 427 of file WorkloadData.hpp.

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

◆ m_RecurrentToInputWeights

const ConstTensorHandle* m_RecurrentToInputWeights

Definition at line 426 of file WorkloadData.hpp.

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

◆ m_RecurrentToOutputWeights

const ConstTensorHandle* m_RecurrentToOutputWeights

Definition at line 429 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:440
armnn::LstmQueueDescriptor::m_CellBias
const ConstTensorHandle * m_CellBias
Definition: WorkloadData.hpp:435
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:422
armnn::LstmQueueDescriptor::m_ForgetGateBias
const ConstTensorHandle * m_ForgetGateBias
Definition: WorkloadData.hpp:434
armnn::LstmQueueDescriptor::m_InputToForgetWeights
const ConstTensorHandle * m_InputToForgetWeights
Definition: WorkloadData.hpp:423
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:424
armnn::DataType::QSymmS16
@ QSymmS16
armnn::DataType::BFloat16
@ BFloat16
armnn::LstmQueueDescriptor::m_CellToOutputWeights
const ConstTensorHandle * m_CellToOutputWeights
Definition: WorkloadData.hpp:432
armnn::LstmDescriptor::m_PeepholeEnabled
bool m_PeepholeEnabled
Enable/disable peephole.
Definition: Descriptors.hpp:1127
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:1123
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:433
armnn::LstmQueueDescriptor::m_RecurrentToCellWeights
const ConstTensorHandle * m_RecurrentToCellWeights
Definition: WorkloadData.hpp:428
armnn::LstmQueueDescriptor::m_CellLayerNormWeights
const ConstTensorHandle * m_CellLayerNormWeights
Definition: WorkloadData.hpp:441
armnn::LstmDescriptor::m_CifgEnabled
bool m_CifgEnabled
Enable/disable cifg (coupled input & forget gate).
Definition: Descriptors.hpp:1125
armnn::LstmQueueDescriptor::m_RecurrentToOutputWeights
const ConstTensorHandle * m_RecurrentToOutputWeights
Definition: WorkloadData.hpp:429
armnn::LstmQueueDescriptor::m_InputLayerNormWeights
const ConstTensorHandle * m_InputLayerNormWeights
Definition: WorkloadData.hpp:439
armnn::LstmDescriptor::m_LayerNormEnabled
bool m_LayerNormEnabled
Enable/disable layer normalization.
Definition: Descriptors.hpp:1131
armnn::LstmQueueDescriptor::m_RecurrentToForgetWeights
const ConstTensorHandle * m_RecurrentToForgetWeights
Definition: WorkloadData.hpp:427
armnn::WorkloadInfo::m_InputTensorInfos
std::vector< TensorInfo > m_InputTensorInfos
Definition: WorkloadInfo.hpp:18
armnn::LstmQueueDescriptor::m_ProjectionWeights
const ConstTensorHandle * m_ProjectionWeights
Definition: WorkloadData.hpp:437
armnn::LstmQueueDescriptor::m_CellToInputWeights
const ConstTensorHandle * m_CellToInputWeights
Definition: WorkloadData.hpp:430
armnn::LstmQueueDescriptor::m_RecurrentToInputWeights
const ConstTensorHandle * m_RecurrentToInputWeights
Definition: WorkloadData.hpp:426
armnn::LstmDescriptor::m_ProjectionEnabled
bool m_ProjectionEnabled
Enable/disable the projection layer.
Definition: Descriptors.hpp:1129
armnn::LstmQueueDescriptor::m_ProjectionBias
const ConstTensorHandle * m_ProjectionBias
Definition: WorkloadData.hpp:438
armnn::LstmQueueDescriptor::m_OutputGateBias
const ConstTensorHandle * m_OutputGateBias
Definition: WorkloadData.hpp:436
armnn::QueueDescriptor::ValidateTensorNumDimNumElem
void ValidateTensorNumDimNumElem(const TensorInfo &tensorInfo, unsigned int numDimension, unsigned int numElements, std::string const &tensorName) const
Definition: WorkloadData.cpp:435
armnn::LstmQueueDescriptor::m_CellToForgetWeights
const ConstTensorHandle * m_CellToForgetWeights
Definition: WorkloadData.hpp:431
armnn::LstmQueueDescriptor::m_InputToOutputWeights
const ConstTensorHandle * m_InputToOutputWeights
Definition: WorkloadData.hpp:425
armnn::LstmDescriptor::m_ClippingThresCell
float m_ClippingThresCell
Clipping threshold value for the cell state.
Definition: Descriptors.hpp:1121
armnn::LstmQueueDescriptor::m_OutputLayerNormWeights
const ConstTensorHandle * m_OutputLayerNormWeights
Definition: WorkloadData.hpp:442