13 #include <arm_compute/runtime/CL/functions/CLLSTMLayer.h>
23 const arm_compute::CLCompileContext& clCompileContext);
31 mutable arm_compute::CLLSTMLayer m_LstmLayer;
32 virtual void Reconfigure();
34 std::unique_ptr<arm_compute::CLTensor> m_InputToInputWeightsTensor;
35 std::unique_ptr<arm_compute::CLTensor> m_InputToForgetWeightsTensor;
36 std::unique_ptr<arm_compute::CLTensor> m_InputToCellWeightsTensor;
37 std::unique_ptr<arm_compute::CLTensor> m_InputToOutputWeightsTensor;
38 std::unique_ptr<arm_compute::CLTensor> m_RecurrentToInputWeightsTensor;
39 std::unique_ptr<arm_compute::CLTensor> m_RecurrentToForgetWeightsTensor;
40 std::unique_ptr<arm_compute::CLTensor> m_RecurrentToCellWeightsTensor;
41 std::unique_ptr<arm_compute::CLTensor> m_RecurrentToOutputWeightsTensor;
42 std::unique_ptr<arm_compute::CLTensor> m_CellToInputWeightsTensor;
43 std::unique_ptr<arm_compute::CLTensor> m_CellToForgetWeightsTensor;
44 std::unique_ptr<arm_compute::CLTensor> m_CellToOutputWeightsTensor;
45 std::unique_ptr<arm_compute::CLTensor> m_InputGateBiasTensor;
46 std::unique_ptr<arm_compute::CLTensor> m_ForgetGateBiasTensor;
47 std::unique_ptr<arm_compute::CLTensor> m_CellBiasTensor;
48 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;
51 std::unique_ptr<arm_compute::CLTensor> m_InputLayerNormWeightsTensor;
52 std::unique_ptr<arm_compute::CLTensor> m_ForgetLayerNormWeightsTensor;
53 std::unique_ptr<arm_compute::CLTensor> m_CellLayerNormWeightsTensor;
54 std::unique_ptr<arm_compute::CLTensor> m_OutputLayerNormWeightsTensor;
56 std::unique_ptr<arm_compute::CLTensor> m_ScratchBuffer;
58 void FreeUnusedTensors();