13 #include "arm_compute/graph/Tensor.h"
14 #include "arm_compute/runtime/NEON/functions/NELSTMLayer.h"
23 virtual void Execute()
const override;
30 mutable arm_compute::NELSTMLayer m_LstmLayer;
32 std::unique_ptr<arm_compute::Tensor> m_InputToInputWeightsTensor;
33 std::unique_ptr<arm_compute::Tensor> m_InputToForgetWeightsTensor;
34 std::unique_ptr<arm_compute::Tensor> m_InputToCellWeightsTensor;
35 std::unique_ptr<arm_compute::Tensor> m_InputToOutputWeightsTensor;
36 std::unique_ptr<arm_compute::Tensor> m_RecurrentToInputWeightsTensor;
37 std::unique_ptr<arm_compute::Tensor> m_RecurrentToForgetWeightsTensor;
38 std::unique_ptr<arm_compute::Tensor> m_RecurrentToCellWeightsTensor;
39 std::unique_ptr<arm_compute::Tensor> m_RecurrentToOutputWeightsTensor;
40 std::unique_ptr<arm_compute::Tensor> m_CellToInputWeightsTensor;
41 std::unique_ptr<arm_compute::Tensor> m_CellToForgetWeightsTensor;
42 std::unique_ptr<arm_compute::Tensor> m_CellToOutputWeightsTensor;
43 std::unique_ptr<arm_compute::Tensor> m_InputGateBiasTensor;
44 std::unique_ptr<arm_compute::Tensor> m_ForgetGateBiasTensor;
45 std::unique_ptr<arm_compute::Tensor> m_CellBiasTensor;
46 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_ScratchBuffer;
52 std::unique_ptr<arm_compute::Tensor> m_InputLayerNormWeightsTensor;
53 std::unique_ptr<arm_compute::Tensor> m_ForgetLayerNormWeightsTensor;
54 std::unique_ptr<arm_compute::Tensor> m_CellLayerNormWeightsTensor;
55 std::unique_ptr<arm_compute::Tensor> m_OutputLayerNormWeightsTensor;
57 void FreeUnusedTensors();
58 virtual void Reconfigure();