13 #include "arm_compute/graph/Tensor.h"
14 #include "arm_compute/runtime/CL/functions/CLQLSTMLayer.h"
24 const arm_compute::CLCompileContext& clCompileContext);
25 virtual void Execute()
const override;
28 mutable arm_compute::CLQLSTMLayer m_QLstmLayer;
30 std::unique_ptr<arm_compute::CLTensor> m_InputToInputWeightsTensor;
31 std::unique_ptr<arm_compute::CLTensor> m_InputToForgetWeightsTensor;
32 std::unique_ptr<arm_compute::CLTensor> m_InputToCellWeightsTensor;
33 std::unique_ptr<arm_compute::CLTensor> m_InputToOutputWeightsTensor;
35 std::unique_ptr<arm_compute::CLTensor> m_RecurrentToInputWeightsTensor;
36 std::unique_ptr<arm_compute::CLTensor> m_RecurrentToForgetWeightsTensor;
37 std::unique_ptr<arm_compute::CLTensor> m_RecurrentToCellWeightsTensor;
38 std::unique_ptr<arm_compute::CLTensor> m_RecurrentToOutputWeightsTensor;
40 std::unique_ptr<arm_compute::CLTensor> m_CellToInputWeightsTensor;
41 std::unique_ptr<arm_compute::CLTensor> m_CellToForgetWeightsTensor;
42 std::unique_ptr<arm_compute::CLTensor> m_CellToOutputWeightsTensor;
44 std::unique_ptr<arm_compute::CLTensor> m_InputGateBiasTensor;
45 std::unique_ptr<arm_compute::CLTensor> m_ForgetGateBiasTensor;
46 std::unique_ptr<arm_compute::CLTensor> m_CellBiasTensor;
47 std::unique_ptr<arm_compute::CLTensor> m_OutputGateBiasTensor;
49 std::unique_ptr<arm_compute::CLTensor> m_ProjectionWeightsTensor;
50 std::unique_ptr<arm_compute::CLTensor> m_ProjectionBiasTensor;
52 std::unique_ptr<arm_compute::CLTensor> m_InputLayerNormWeightsTensor;
53 std::unique_ptr<arm_compute::CLTensor> m_ForgetLayerNormWeightsTensor;
54 std::unique_ptr<arm_compute::CLTensor> m_CellLayerNormWeightsTensor;
55 std::unique_ptr<arm_compute::CLTensor> m_OutputLayerNormWeightsTensor;
57 void FreeUnusedTensors();