aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/layers/QuantizedLstmLayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnn/layers/QuantizedLstmLayer.cpp')
-rw-r--r--src/armnn/layers/QuantizedLstmLayer.cpp139
1 files changed, 0 insertions, 139 deletions
diff --git a/src/armnn/layers/QuantizedLstmLayer.cpp b/src/armnn/layers/QuantizedLstmLayer.cpp
index e9b9d1c6b9..9d58d25f60 100644
--- a/src/armnn/layers/QuantizedLstmLayer.cpp
+++ b/src/armnn/layers/QuantizedLstmLayer.cpp
@@ -170,145 +170,6 @@ Layer::ConstantTensors QuantizedLstmLayer::GetConstantTensorsByRef()
};
}
-ARMNN_NO_DEPRECATE_WARN_BEGIN
-void QuantizedLstmLayer::Accept(ILayerVisitor& visitor) const
-{
- QuantizedLstmInputParams inputParams;
-
- ManagedConstTensorHandle managedInputToInputWeights(m_QuantizedLstmParameters.m_InputToInputWeights);
- ManagedConstTensorHandle managedInputToForgetWeights(m_QuantizedLstmParameters.m_InputToForgetWeights);
- ManagedConstTensorHandle managedInputToCellWeights(m_QuantizedLstmParameters.m_InputToCellWeights);
- ManagedConstTensorHandle managedInputToOutputWeights(m_QuantizedLstmParameters.m_InputToOutputWeights);
-
- ManagedConstTensorHandle managedRecurrentToInputWeights(m_QuantizedLstmParameters.m_RecurrentToInputWeights);
- ManagedConstTensorHandle managedRecurrentToForgetWeights(m_QuantizedLstmParameters.m_RecurrentToForgetWeights);
- ManagedConstTensorHandle managedRecurrentToCellWeights(m_QuantizedLstmParameters.m_RecurrentToCellWeights);
- ManagedConstTensorHandle managedRecurrentToOutputWeights(m_QuantizedLstmParameters.m_RecurrentToOutputWeights);
-
- ManagedConstTensorHandle managedInputGateBias(m_QuantizedLstmParameters.m_InputGateBias);
- ManagedConstTensorHandle managedForgetGateBias(m_QuantizedLstmParameters.m_ForgetGateBias);
- ManagedConstTensorHandle managedCellBias(m_QuantizedLstmParameters.m_CellBias);
- ManagedConstTensorHandle managedOutputGateBias(m_QuantizedLstmParameters.m_OutputGateBias);
-
- // InputToX weight tensors
- ConstTensor inputToInputWeightsTensor;
- if (m_QuantizedLstmParameters.m_InputToInputWeights != nullptr)
- {
- ConstTensor inputToInputWeightsTensorCopy(managedInputToInputWeights.GetTensorInfo(),
- managedInputToInputWeights.Map());
- inputToInputWeightsTensor = inputToInputWeightsTensorCopy;
- inputParams.m_InputToInputWeights = &inputToInputWeightsTensor;
- }
-
- ConstTensor inputToForgetWeightsTensor;
- if (m_QuantizedLstmParameters.m_InputToForgetWeights != nullptr)
- {
- ConstTensor inputToForgetWeightsTensorCopy(managedInputToForgetWeights.GetTensorInfo(),
- managedInputToForgetWeights.Map());
- inputToForgetWeightsTensor = inputToForgetWeightsTensorCopy;
- inputParams.m_InputToForgetWeights = &inputToForgetWeightsTensor;
- }
-
- ConstTensor inputToCellWeightsTensor;
- if (m_QuantizedLstmParameters.m_InputToCellWeights != nullptr)
- {
- ConstTensor inputToCellWeightsTensorCopy(managedInputToCellWeights.GetTensorInfo(),
- managedInputToCellWeights.Map());
- inputToCellWeightsTensor = inputToCellWeightsTensorCopy;
- inputParams.m_InputToCellWeights = &inputToCellWeightsTensor;
- }
-
- ConstTensor inputToOutputWeightsTensor;
- if (m_QuantizedLstmParameters.m_InputToOutputWeights != nullptr)
- {
- ConstTensor inputToOutputWeightsTensorCopy(managedInputToOutputWeights.GetTensorInfo(),
- managedInputToOutputWeights.Map());
- inputToOutputWeightsTensor = inputToOutputWeightsTensorCopy;
- inputParams.m_InputToOutputWeights = &inputToOutputWeightsTensor;
- }
-
- // RecurrentToX weight tensors
- ConstTensor recurrentToInputWeightsTensor;
- if (m_QuantizedLstmParameters.m_RecurrentToInputWeights != nullptr)
- {
- ConstTensor recurrentToInputWeightsTensorCopy(
- managedRecurrentToInputWeights.GetTensorInfo(),
- managedRecurrentToInputWeights.Map());
- recurrentToInputWeightsTensor = recurrentToInputWeightsTensorCopy;
- inputParams.m_RecurrentToInputWeights = &recurrentToInputWeightsTensor;
- }
-
- ConstTensor recurrentToForgetWeightsTensor;
- if (m_QuantizedLstmParameters.m_RecurrentToForgetWeights != nullptr)
- {
- ConstTensor recurrentToForgetWeightsTensorCopy(
- managedRecurrentToForgetWeights.GetTensorInfo(),
- managedRecurrentToForgetWeights.Map());
- recurrentToForgetWeightsTensor = recurrentToForgetWeightsTensorCopy;
- inputParams.m_RecurrentToForgetWeights = &recurrentToForgetWeightsTensor;
- }
-
- ConstTensor recurrentToCellWeightsTensor;
- if (m_QuantizedLstmParameters.m_RecurrentToCellWeights != nullptr)
- {
- ConstTensor recurrentToCellWeightsTensorCopy(
- managedRecurrentToCellWeights.GetTensorInfo(),
- managedRecurrentToCellWeights.Map());
- recurrentToCellWeightsTensor = recurrentToCellWeightsTensorCopy;
- inputParams.m_RecurrentToCellWeights = &recurrentToCellWeightsTensor;
- }
-
- ConstTensor recurrentToOutputWeightsTensor;
- if (m_QuantizedLstmParameters.m_RecurrentToOutputWeights != nullptr)
- {
- ConstTensor recurrentToOutputWeightsTensorCopy(
- managedRecurrentToOutputWeights.GetTensorInfo(),
- managedRecurrentToOutputWeights.Map());
- recurrentToOutputWeightsTensor = recurrentToOutputWeightsTensorCopy;
- inputParams.m_RecurrentToOutputWeights = &recurrentToOutputWeightsTensor;
- }
-
- // Bias tensors
- ConstTensor inputGateBiasTensor;
- if (m_QuantizedLstmParameters.m_InputGateBias != nullptr)
- {
- ConstTensor inputGateBiasTensorCopy(managedInputGateBias.GetTensorInfo(),
- managedInputGateBias.Map());
- inputGateBiasTensor = inputGateBiasTensorCopy;
- inputParams.m_InputGateBias = &inputGateBiasTensor;
- }
-
- ConstTensor forgetGateBiasTensor;
- if (m_QuantizedLstmParameters.m_ForgetGateBias != nullptr)
- {
- ConstTensor forgetGateBiasTensorCopy(managedForgetGateBias.GetTensorInfo(),
- managedForgetGateBias.Map());
- forgetGateBiasTensor = forgetGateBiasTensorCopy;
- inputParams.m_ForgetGateBias = &forgetGateBiasTensor;
- }
-
- ConstTensor cellBiasTensor;
- if (m_QuantizedLstmParameters.m_CellBias != nullptr)
- {
- ConstTensor cellBiasTensorCopy(managedCellBias.GetTensorInfo(),
- managedCellBias.Map());
- cellBiasTensor = cellBiasTensorCopy;
- inputParams.m_CellBias = &cellBiasTensor;
- }
-
- ConstTensor outputGateBiasTensor;
- if (m_QuantizedLstmParameters.m_OutputGateBias != nullptr)
- {
- ConstTensor outputGateBiasCopy(managedOutputGateBias.GetTensorInfo(),
- managedOutputGateBias.Map());
- outputGateBiasTensor = outputGateBiasCopy;
- inputParams.m_OutputGateBias = &outputGateBiasTensor;
- }
-
- visitor.VisitQuantizedLstmLayer(this, inputParams, GetName());
-}
-ARMNN_NO_DEPRECATE_WARN_END
-
void QuantizedLstmLayer::ExecuteStrategy(IStrategy& strategy) const
{
std::vector<ConstTensor> constTensors;