ArmNN
 23.05
LstmQueueDescriptor Struct Reference

#include <WorkloadData.hpp>

Inheritance diagram for LstmQueueDescriptor:
QueueDescriptorWithParameters< LstmDescriptor > QueueDescriptor

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 1952 of file WorkloadData.cpp.

1953 {
1954  // ported from android/ml/nn/common/operations/LSTM.cpp CheckInputTensorDimensions()
1955 
1956  const std::string descriptorName{"LstmQueueDescriptor"};
1957 
1958  // check dimensions of all inputs and outputs
1959  if (workloadInfo.m_InputTensorInfos.size() != 3)
1960  {
1961  throw InvalidArgumentException(descriptorName + ": Invalid number of inputs.");
1962  }
1963  if (workloadInfo.m_OutputTensorInfos.size() != 4)
1964  {
1965  throw InvalidArgumentException(descriptorName + ": Invalid number of outputs.");
1966  }
1967 
1968  std::vector<DataType> supportedTypes =
1969  {
1974  };
1975 
1976  // check for supported type of one input and match them with all the other input and output
1977  ValidateDataTypes(workloadInfo.m_InputTensorInfos[0], supportedTypes, descriptorName);
1978 
1979  // type matches all other inputs
1980  for (uint32_t i = 1u; i < workloadInfo.m_InputTensorInfos.size(); ++i)
1981  {
1982  ValidateTensorDataTypesMatch(workloadInfo.m_InputTensorInfos[0],
1983  workloadInfo.m_InputTensorInfos[i],
1984  descriptorName,
1985  "input_0",
1986  "input_" + std::to_string(i));
1987  }
1988  // type matches all other outputs
1989  for (uint32_t i = 0u; i < workloadInfo.m_OutputTensorInfos.size(); ++i)
1990  {
1991  ValidateTensorDataTypesMatch(workloadInfo.m_InputTensorInfos[0],
1992  workloadInfo.m_OutputTensorInfos[i],
1993  "LstmQueueDescriptor",
1994  "input_0",
1995  "output_" + std::to_string(i));
1996  }
1997 
1998  // Making sure clipping parameters have valid values.
1999  // == 0 means no clipping
2000  // > 0 means clipping
2001  if (m_Parameters.m_ClippingThresCell < 0.0f)
2002  {
2003  throw InvalidArgumentException(descriptorName + ": negative cell clipping threshold is invalid");
2004  }
2005  if (m_Parameters.m_ClippingThresProj < 0.0f)
2006  {
2007  throw InvalidArgumentException(descriptorName + ": negative projection clipping threshold is invalid");
2008  }
2009 
2010  // Inferring batch size, number of outputs and number of cells from the inputs.
2011  const uint32_t n_input = workloadInfo.m_InputTensorInfos[0].GetShape()[1];
2012  const uint32_t n_batch = workloadInfo.m_InputTensorInfos[0].GetShape()[0];
2013  ValidatePointer(m_InputToOutputWeights, "Null pointer check", "InputToOutputWeights");
2014  const uint32_t n_cell = m_InputToOutputWeights->GetShape()[0];
2015  ValidatePointer(m_RecurrentToOutputWeights, "Null pointer check", "RecurrentToOutputWeights");
2016  const uint32_t n_output = m_RecurrentToOutputWeights->GetShape()[1];
2017 
2018  // input tensor
2019  ValidateTensorNumDimNumElem(workloadInfo.m_InputTensorInfos[0], 2, (n_batch * n_input),
2020  descriptorName + " input_0");
2021  // outputStateInTensor
2022  ValidateTensorNumDimNumElem(workloadInfo.m_InputTensorInfos[1], 2, (n_batch * n_output),
2023  descriptorName + " input_1");
2024  // outputStateInTensor
2025  ValidateTensorNumDimNumElem(workloadInfo.m_InputTensorInfos[2], 2, (n_batch * n_cell),
2026  descriptorName + " input_2");
2027  // scratchBufferTensor
2028  unsigned int scratchBufferSize = m_Parameters.m_CifgEnabled ? n_cell * 3 : n_cell * 4;
2029  ValidateTensorNumDimNumElem(workloadInfo.m_OutputTensorInfos[0], 2, (n_batch * scratchBufferSize),
2030  descriptorName + " output_0");
2031  // outputStateOutTensor
2032  ValidateTensorNumDimNumElem(workloadInfo.m_OutputTensorInfos[1], 2, (n_batch * n_output),
2033  descriptorName + " output_1");
2034  // cellStateOutTensor
2035  ValidateTensorNumDimNumElem(workloadInfo.m_OutputTensorInfos[2], 2, (n_batch * n_cell),
2036  descriptorName + " output_2");
2037  // outputTensor
2038  ValidateTensorNumDimNumElem(workloadInfo.m_OutputTensorInfos[3], 2, (n_batch * n_output),
2039  descriptorName + " output_3");
2040 
2041  // check that dimensions of inputs/outputs and QueueDescriptor data match with each other
2042  if ( m_InputToInputWeights )
2043  {
2045  (n_cell * n_input), "InputLayerNormWeights");
2046  }
2047 
2048  ValidatePointer(m_InputToForgetWeights, "Null pointer check", "InputToForgetWeights");
2050  (n_cell * n_input), "InputToForgetWeights");
2051 
2052  ValidatePointer(m_InputToCellWeights, "Null pointer check", "InputToCellWeights");
2054  (n_cell * n_input), "InputToCellWeights");
2055 
2057  {
2059  (n_cell * n_output), "RecurrentToInputWeights");
2060  }
2061 
2062  ValidatePointer(m_RecurrentToForgetWeights, "Null pointer check", "RecurrentToForgetWeights");
2064  (n_cell * n_output), "RecurrentToForgetWeights");
2065 
2066  ValidatePointer(m_RecurrentToCellWeights, "Null pointer check", "RecurrentToCellWeights");
2068  (n_cell * n_output), "RecurrentToCellWeights");
2069 
2070  // Make sure the input-gate's parameters are either both present (regular
2071  // LSTM) or not at all (CIFG-LSTM). And CifgEnable is set accordingly.
2072  bool cifg_weights_all_or_none = ((m_InputToInputWeights && m_RecurrentToInputWeights &&
2076  if (!cifg_weights_all_or_none)
2077  {
2078  throw InvalidArgumentException(descriptorName + ": Input-Gate's parameters InputToInputWeights and "
2079  "RecurrentToInputWeights must either both be present (regular LSTM) "
2080  "or both not present (CIFG-LSTM). In addition CifgEnable must be set "
2081  "accordingly.");
2082  }
2083 
2084  if ( m_CellToInputWeights )
2085  {
2087  n_cell, "CellToInputWeights");
2088  }
2089  if ( m_CellToForgetWeights )
2090  {
2092  n_cell, "CellToForgetWeights");
2093  }
2094  if ( m_CellToOutputWeights )
2095  {
2097  n_cell, "CellToOutputWeights");
2098  }
2099 
2100  // Making sure the peephole weights are there all or none. And PeepholeEnable is set accordingly.
2101  bool peephole_weights_all_or_none =
2106  if (!peephole_weights_all_or_none)
2107  {
2108  throw InvalidArgumentException(descriptorName + ": Invalid combination of peephole parameters.");
2109  }
2110 
2111  // Make sure the input gate bias is present only when not a CIFG-LSTM.
2113  {
2114  if (m_InputGateBias)
2115  {
2116  throw InvalidArgumentException(descriptorName + ": InputGateBias is present and CIFG-LSTM is enabled.");
2117  }
2118  }
2119  else
2120  {
2121  if (!m_InputGateBias)
2122  {
2123  throw InvalidArgumentException(descriptorName + ": If CIFG-LSTM is disabled InputGateBias "
2124  "must be present.");
2125  }
2127  n_cell, "InputGateBias");
2128  }
2129 
2130  ValidatePointer(m_ForgetGateBias, "Null pointer check", "ForgetGateBias");
2131  ValidateTensorNumDimNumElem(m_ForgetGateBias->GetTensorInfo(), 1, n_cell, "ForgetGateBias");
2132 
2133  ValidatePointer(m_CellBias, "Null pointer check", "CellBias");
2134  ValidateTensorNumDimNumElem(m_CellBias->GetTensorInfo(), 1, n_cell, "CellBias");
2135 
2136  ValidatePointer(m_OutputGateBias, "Null pointer check", "OutputGateBias");
2137  ValidateTensorNumDimNumElem(m_OutputGateBias->GetTensorInfo(), 1, n_cell, "OutputGateBias");
2138 
2139  if (m_ProjectionWeights)
2140  {
2142  (n_cell * n_output), "ProjectionWeights");
2143  }
2144  if (m_ProjectionBias)
2145  {
2146  ValidateTensorNumDimNumElem(m_ProjectionBias->GetTensorInfo(), 1, n_output, "ProjectionBias");
2147  }
2148 
2149  // Making sure the projection tensors are consistent:
2150  // 1) If projection weight is not present, then projection bias should not be
2151  // present.
2152  // 2) If projection weight is present, then projection bias is optional.
2153  bool projecton_tensors_consistent = ((!m_ProjectionWeights && !m_ProjectionBias &&
2159  if (!projecton_tensors_consistent)
2160  {
2161  throw InvalidArgumentException(descriptorName + ": Projection tensors are inconsistent.");
2162  }
2163 
2164  // The four layer normalization weights either all have values or none of them have values. Additionally, if
2165  // CIFG is used, input layer normalization weights tensor is omitted and the other layer normalization weights
2166  // either all have values or none of them have values. Layer normalization is used when the values of all the
2167  // layer normalization weights are present
2169  {
2170  ValidateTensorNumDimNumElem(m_InputLayerNormWeights->GetTensorInfo(), 1, n_cell, "InputLayerNormWeights");
2171  }
2173  {
2174  ValidateTensorNumDimNumElem(m_ForgetLayerNormWeights->GetTensorInfo(), 1, n_cell, "ForgetLayerNormWeights");
2175  }
2177  {
2178  ValidateTensorNumDimNumElem(m_CellLayerNormWeights->GetTensorInfo(), 1, n_cell, "CellLayerNormWeights");
2179  }
2181  {
2182  ValidateTensorNumDimNumElem(m_OutputLayerNormWeights->GetTensorInfo(), 1, n_cell, "OutputLayerNormWeights");
2183  }
2184 
2186  {
2188  {
2190  {
2191  throw InvalidArgumentException(descriptorName + ": Layer normalisation is enabled and CIFG-LSTM is "
2192  "disabled but InputLayerNormWeights are not present");
2193  }
2195  1, n_cell, "InputLayerNormWeights");
2196  }
2197  else if (m_InputLayerNormWeights)
2198  {
2199  throw InvalidArgumentException(descriptorName + ":InputLayerNormWeights are present while CIFG is "
2200  "enabled");
2201  }
2202 
2203  ValidatePointer(m_ForgetLayerNormWeights, "Null pointer check layer normalisation enabled",
2204  "ForgetLayerNormWeights");
2205  ValidateTensorNumDimNumElem(m_ForgetLayerNormWeights->GetTensorInfo(), 1, n_cell, "ForgetLayerNormWeights");
2206 
2207  ValidatePointer(m_OutputLayerNormWeights, "Null pointer check layer normalisation enabled",
2208  "OutputLayerNormWeights");
2209  ValidateTensorNumDimNumElem(m_OutputLayerNormWeights->GetTensorInfo(), 1, n_cell, "OutputLayerNormWeights");
2210 
2211  ValidatePointer(m_CellLayerNormWeights, "Null pointer check layer normalisation enabled",
2212  "CellLayerNormWeights");
2213  ValidateTensorNumDimNumElem(m_CellLayerNormWeights->GetTensorInfo(), 1, n_cell, "CellLayerNormWeights");
2214  }
2216  {
2217  throw InvalidArgumentException(descriptorName + ": Layer normalisation is disabled but one or more layer "
2218  "normalisation weights are present.");
2219  }
2220 }

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_CellToOutputWeights
const ConstTensorHandle * m_CellToOutputWeights
Definition: WorkloadData.hpp:432
armnn::QueueDescriptor::ValidateTensorNumDimNumElem
void ValidateTensorNumDimNumElem(const TensorInfo &tensorInfo, unsigned int numDimension, unsigned int numElements, std::string const &tensorName) const
Definition: WorkloadData.cpp:461
armnn::LstmQueueDescriptor::m_InputToOutputWeights
const ConstTensorHandle * m_InputToOutputWeights
Definition: WorkloadData.hpp:425
armnn::LstmQueueDescriptor::m_CellLayerNormWeights
const ConstTensorHandle * m_CellLayerNormWeights
Definition: WorkloadData.hpp:441
armnn::DataType::Float16
@ Float16
armnn::LstmQueueDescriptor::m_CellBias
const ConstTensorHandle * m_CellBias
Definition: WorkloadData.hpp:435
armnn::LstmQueueDescriptor::m_OutputGateBias
const ConstTensorHandle * m_OutputGateBias
Definition: WorkloadData.hpp:436
armnn::LstmQueueDescriptor::m_InputToForgetWeights
const ConstTensorHandle * m_InputToForgetWeights
Definition: WorkloadData.hpp:423
armnn::LstmDescriptor::m_CifgEnabled
bool m_CifgEnabled
Enable/disable cifg (coupled input & forget gate).
Definition: Descriptors.hpp:1113
armnn::LstmDescriptor::m_LayerNormEnabled
bool m_LayerNormEnabled
Enable/disable layer normalization.
Definition: Descriptors.hpp:1119
armnn::LstmQueueDescriptor::m_CellToInputWeights
const ConstTensorHandle * m_CellToInputWeights
Definition: WorkloadData.hpp:430
armnn::LstmQueueDescriptor::m_ProjectionWeights
const ConstTensorHandle * m_ProjectionWeights
Definition: WorkloadData.hpp:437
armnn::LstmQueueDescriptor::m_ProjectionBias
const ConstTensorHandle * m_ProjectionBias
Definition: WorkloadData.hpp:438
armnn::WorkloadInfo::m_OutputTensorInfos
std::vector< TensorInfo > m_OutputTensorInfos
Definition: WorkloadInfo.hpp:19
armnn::LstmQueueDescriptor::m_RecurrentToOutputWeights
const ConstTensorHandle * m_RecurrentToOutputWeights
Definition: WorkloadData.hpp:429
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::DataType::Float32
@ Float32
armnn::LstmDescriptor::m_PeepholeEnabled
bool m_PeepholeEnabled
Enable/disable peephole.
Definition: Descriptors.hpp:1115
armnn::LstmQueueDescriptor::m_InputToCellWeights
const ConstTensorHandle * m_InputToCellWeights
Definition: WorkloadData.hpp:424
armnn::LstmQueueDescriptor::m_ForgetLayerNormWeights
const ConstTensorHandle * m_ForgetLayerNormWeights
Definition: WorkloadData.hpp:440
armnn::ConstTensorHandle::GetTensorInfo
const TensorInfo & GetTensorInfo() const
Definition: TensorHandle.hpp:40
armnn::LstmQueueDescriptor::m_OutputLayerNormWeights
const ConstTensorHandle * m_OutputLayerNormWeights
Definition: WorkloadData.hpp:442
armnn::LstmQueueDescriptor::m_RecurrentToForgetWeights
const ConstTensorHandle * m_RecurrentToForgetWeights
Definition: WorkloadData.hpp:427
armnn::LstmQueueDescriptor::m_RecurrentToCellWeights
const ConstTensorHandle * m_RecurrentToCellWeights
Definition: WorkloadData.hpp:428
armnn::LstmQueueDescriptor::m_CellToForgetWeights
const ConstTensorHandle * m_CellToForgetWeights
Definition: WorkloadData.hpp:431
armnn::LstmDescriptor::m_ClippingThresCell
float m_ClippingThresCell
Clipping threshold value for the cell state.
Definition: Descriptors.hpp:1109
armnn::QueueDescriptorWithParameters< LstmDescriptor >::m_Parameters
LstmDescriptor m_Parameters
Definition: WorkloadData.hpp:66
armnn::DataType::BFloat16
@ BFloat16
armnn::LstmDescriptor::m_ProjectionEnabled
bool m_ProjectionEnabled
Enable/disable the projection layer.
Definition: Descriptors.hpp:1117
armnn::LstmQueueDescriptor::m_InputToInputWeights
const ConstTensorHandle * m_InputToInputWeights
Definition: WorkloadData.hpp:422
armnn::LstmQueueDescriptor::m_RecurrentToInputWeights
const ConstTensorHandle * m_RecurrentToInputWeights
Definition: WorkloadData.hpp:426
armnn::LstmQueueDescriptor::m_InputLayerNormWeights
const ConstTensorHandle * m_InputLayerNormWeights
Definition: WorkloadData.hpp:439
armnn::LstmDescriptor::m_ClippingThresProj
float m_ClippingThresProj
Clipping threshold value for the projection.
Definition: Descriptors.hpp:1111
armnn::DataType::QSymmS16
@ QSymmS16
armnn::LstmQueueDescriptor::m_ForgetGateBias
const ConstTensorHandle * m_ForgetGateBias
Definition: WorkloadData.hpp:434
armnn::LstmQueueDescriptor::m_InputGateBias
const ConstTensorHandle * m_InputGateBias
Definition: WorkloadData.hpp:433
armnn::InvalidArgumentException
Definition: Exceptions.hpp:80
armnn::WorkloadInfo::m_InputTensorInfos
std::vector< TensorInfo > m_InputTensorInfos
Definition: WorkloadInfo.hpp:18