13 #include "arm_compute/graph/Tensor.h"
14 #include "arm_compute/runtime/NEON/functions/NEQLSTMLayer.h"
23 virtual void Execute()
const override;
26 mutable arm_compute::NEQLSTMLayer m_QLstmLayer;
28 std::unique_ptr<arm_compute::Tensor> m_InputToInputWeightsTensor;
29 std::unique_ptr<arm_compute::Tensor> m_InputToForgetWeightsTensor;
30 std::unique_ptr<arm_compute::Tensor> m_InputToCellWeightsTensor;
31 std::unique_ptr<arm_compute::Tensor> m_InputToOutputWeightsTensor;
33 std::unique_ptr<arm_compute::Tensor> m_RecurrentToInputWeightsTensor;
34 std::unique_ptr<arm_compute::Tensor> m_RecurrentToForgetWeightsTensor;
35 std::unique_ptr<arm_compute::Tensor> m_RecurrentToCellWeightsTensor;
36 std::unique_ptr<arm_compute::Tensor> m_RecurrentToOutputWeightsTensor;
38 std::unique_ptr<arm_compute::Tensor> m_CellToInputWeightsTensor;
39 std::unique_ptr<arm_compute::Tensor> m_CellToForgetWeightsTensor;
40 std::unique_ptr<arm_compute::Tensor> m_CellToOutputWeightsTensor;
42 std::unique_ptr<arm_compute::Tensor> m_InputGateBiasTensor;
43 std::unique_ptr<arm_compute::Tensor> m_ForgetGateBiasTensor;
44 std::unique_ptr<arm_compute::Tensor> m_CellBiasTensor;
45 std::unique_ptr<arm_compute::Tensor> m_OutputGateBiasTensor;
47 std::unique_ptr<arm_compute::Tensor> m_ProjectionWeightsTensor;
48 std::unique_ptr<arm_compute::Tensor> m_ProjectionBiasTensor;
50 std::unique_ptr<arm_compute::Tensor> m_InputLayerNormWeightsTensor;
51 std::unique_ptr<arm_compute::Tensor> m_ForgetLayerNormWeightsTensor;
52 std::unique_ptr<arm_compute::Tensor> m_CellLayerNormWeightsTensor;
53 std::unique_ptr<arm_compute::Tensor> m_OutputLayerNormWeightsTensor;
55 void FreeUnusedTensors();