aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/CL/functions/CLLocallyConnectedLayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/runtime/CL/functions/CLLocallyConnectedLayer.h')
-rw-r--r--arm_compute/runtime/CL/functions/CLLocallyConnectedLayer.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/arm_compute/runtime/CL/functions/CLLocallyConnectedLayer.h b/arm_compute/runtime/CL/functions/CLLocallyConnectedLayer.h
index ba85c6140c..3bbf9f2c30 100644
--- a/arm_compute/runtime/CL/functions/CLLocallyConnectedLayer.h
+++ b/arm_compute/runtime/CL/functions/CLLocallyConnectedLayer.h
@@ -26,10 +26,6 @@
#include "arm_compute/runtime/IFunction.h"
-#include "arm_compute/core/CL/kernels/CLCol2ImKernel.h"
-#include "arm_compute/core/CL/kernels/CLIm2ColKernel.h"
-#include "arm_compute/core/CL/kernels/CLLocallyConnectedMatrixMultiplyKernel.h"
-#include "arm_compute/core/CL/kernels/CLWeightsReshapeKernel.h"
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/CL/CLTensor.h"
#include "arm_compute/runtime/IMemoryManager.h"
@@ -39,7 +35,13 @@
namespace arm_compute
{
+class CLCompileContext;
+class CLCol2ImKernel;
+class CLIm2ColKernel;
+class CLWeightsReshapeKernel;
+class CLLocallyConnectedMatrixMultiplyKernel;
class ICLTensor;
+class ITensorInfo;
/** Basic function to compute the locally connected layer. This function calls the following OpenCL kernels:
*
@@ -108,16 +110,16 @@ public:
void prepare() override;
private:
- MemoryGroup _memory_group;
- CLIm2ColKernel _input_im2col_kernel;
- CLWeightsReshapeKernel _weights_reshape_kernel;
- CLLocallyConnectedMatrixMultiplyKernel _mm_kernel;
- CLCol2ImKernel _output_col2im_kernel;
- CLTensor _input_im2col_reshaped;
- CLTensor _weights_reshaped;
- CLTensor _gemm_output;
- bool _is_prepared;
- const ICLTensor *_original_weights;
+ MemoryGroup _memory_group;
+ std::unique_ptr<CLIm2ColKernel> _input_im2col_kernel;
+ std::unique_ptr<CLWeightsReshapeKernel> _weights_reshape_kernel;
+ std::unique_ptr<CLLocallyConnectedMatrixMultiplyKernel> _mm_kernel;
+ std::unique_ptr<CLCol2ImKernel> _output_col2im_kernel;
+ CLTensor _input_im2col_reshaped;
+ CLTensor _weights_reshaped;
+ CLTensor _gemm_output;
+ bool _is_prepared;
+ const ICLTensor *_original_weights;
};
}
#endif /* ARM_COMPUTE_CLLOCALLYCONNECTEDLAYER_H */