14 #include "arm_compute/runtime/NEON/functions/NEQLSTMLayer.h"
15 #include "arm_compute/runtime/NEON/functions/NEPermute.h"
16 #include "arm_compute/runtime/NEON/functions/NESplit.h"
17 #include "arm_compute/runtime/NEON/functions/NEConcatenateLayer.h"
27 virtual void Execute()
const override;
34 mutable std::unique_ptr<arm_compute::NEPermute> m_Permute1;
35 mutable std::unique_ptr<arm_compute::IFunction> m_Splitter;
36 mutable std::vector<std::unique_ptr<arm_compute::NEQLSTMLayer>> m_Layers;
37 mutable std::unique_ptr<arm_compute::NEConcatenateLayer> m_Concat;
38 mutable std::unique_ptr<arm_compute::NEPermute> m_Permute2;
43 std::unique_ptr<arm_compute::Tensor> m_InputToInputWeightsTensor;
44 std::unique_ptr<arm_compute::Tensor> m_InputToForgetWeightsTensor;
45 std::unique_ptr<arm_compute::Tensor> m_InputToCellWeightsTensor;
46 std::unique_ptr<arm_compute::Tensor> m_InputToOutputWeightsTensor;
47 std::unique_ptr<arm_compute::Tensor> m_RecurrentToInputWeightsTensor;
48 std::unique_ptr<arm_compute::Tensor> m_RecurrentToForgetWeightsTensor;
49 std::unique_ptr<arm_compute::Tensor> m_RecurrentToCellWeightsTensor;
50 std::unique_ptr<arm_compute::Tensor> m_RecurrentToOutputWeightsTensor;
51 std::unique_ptr<arm_compute::Tensor> m_CellToInputWeightsTensor;
52 std::unique_ptr<arm_compute::Tensor> m_CellToForgetWeightsTensor;
53 std::unique_ptr<arm_compute::Tensor> m_CellToOutputWeightsTensor;
54 std::unique_ptr<arm_compute::Tensor> m_InputGateBiasTensor;
55 std::unique_ptr<arm_compute::Tensor> m_ForgetGateBiasTensor;
56 std::unique_ptr<arm_compute::Tensor> m_CellBiasTensor;
57 std::unique_ptr<arm_compute::Tensor> m_OutputGateBiasTensor;
58 std::unique_ptr<arm_compute::Tensor> m_ProjectionWeightsTensor;
59 std::unique_ptr<arm_compute::Tensor> m_ProjectionBiasTensor;
61 std::unique_ptr<arm_compute::Tensor> m_InputLayerNormWeightsTensor;
62 std::unique_ptr<arm_compute::Tensor> m_ForgetLayerNormWeightsTensor;
63 std::unique_ptr<arm_compute::Tensor> m_CellLayerNormWeightsTensor;
64 std::unique_ptr<arm_compute::Tensor> m_OutputLayerNormWeightsTensor;
70 arm_compute::Tensor m_PermuteFirstOut;
71 std::vector<arm_compute::Tensor> m_SplitterOutputsTensors;
72 std::vector<arm_compute::Tensor> m_ConcatInputsTensors;
73 std::vector<arm_compute::ITensor*> m_SplitterOutputs;
74 std::vector<const arm_compute::ITensor*> m_ConcatInputs;
75 arm_compute::Tensor concat_out;
77 void FreeUnusedTensors();