COMPMID-3280: Make all ML primitives for CL use the new interface - Part1 - Fix1
authorManuel Bottini <manuel.bottini@arm.com>
Tue, 21 Apr 2020 12:29:30 +0000 (13:29 +0100)
committerManuel Bottini <manuel.bottini@arm.com>
Wed, 22 Apr 2020 08:57:15 +0000 (08:57 +0000)
- const fix in the CLKernels part 1

Change-Id: I17340cb6ff26afd52b14b46645efedbe07aef1b6
Signed-off-by: Manuel Bottini <manuel.bottini@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3067
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
99 files changed:
arm_compute/core/CL/CLHelpers.h
arm_compute/core/CL/kernels/CLAbsoluteDifferenceKernel.h
arm_compute/core/CL/kernels/CLAccumulateKernel.h
arm_compute/core/CL/kernels/CLActivationLayerKernel.h
arm_compute/core/CL/kernels/CLArgMinMaxLayerKernel.h
arm_compute/core/CL/kernels/CLBatchConcatenateLayerKernel.h
arm_compute/core/CL/kernels/CLBatchNormalizationLayerKernel.h
arm_compute/core/CL/kernels/CLBatchToSpaceLayerKernel.h
arm_compute/core/CL/kernels/CLBitwiseAndKernel.h
arm_compute/core/CL/kernels/CLBitwiseNotKernel.h
arm_compute/core/CL/kernels/CLBitwiseOrKernel.h
arm_compute/core/CL/kernels/CLBitwiseXorKernel.h
arm_compute/core/CL/kernels/CLBoundingBoxTransformKernel.h
arm_compute/core/CL/kernels/CLBox3x3Kernel.h
arm_compute/core/CL/kernels/CLCannyEdgeKernel.h
arm_compute/core/CL/kernels/CLChannelCombineKernel.h
arm_compute/core/CL/kernels/CLChannelExtractKernel.h
arm_compute/core/CL/kernels/CLChannelShuffleLayerKernel.h
arm_compute/core/CL/kernels/CLCol2ImKernel.h
arm_compute/core/CL/kernels/CLColorConvertKernel.h
arm_compute/core/CL/kernels/CLComparisonKernel.h
arm_compute/core/CL/kernels/CLConvertFullyConnectedWeightsKernel.h
arm_compute/core/CL/kernels/CLConvolutionKernel.h
arm_compute/core/CL/kernels/CLCopyKernel.h
arm_compute/core/CL/kernels/CLCropKernel.h
arm_compute/core/CL/kernels/CLDeconvolutionLayerUpsampleKernel.h
arm_compute/core/CL/kernels/CLDeconvolutionReshapeOutputKernel.h
arm_compute/core/CL/kernels/CLDepthConcatenateLayerKernel.h
arm_compute/core/CL/kernels/CLDepthConvertLayerKernel.h
arm_compute/core/CL/kernels/CLDepthToSpaceLayerKernel.h
arm_compute/core/CL/kernels/CLDepthwiseConvolutionLayer3x3NCHWKernel.h
arm_compute/core/CL/kernels/CLDepthwiseConvolutionLayer3x3NHWCKernel.h
arm_compute/core/CL/kernels/CLDepthwiseConvolutionLayerNativeKernel.h
arm_compute/core/CL/kernels/CLDepthwiseConvolutionLayerReshapeWeightsKernel.h
arm_compute/core/CL/kernels/CLDequantizationLayerKernel.h
arm_compute/core/CL/kernels/CLDerivativeKernel.h
arm_compute/core/CL/kernels/CLDilateKernel.h
arm_compute/core/CL/kernels/CLDirectConvolutionLayerKernel.h
arm_compute/core/CL/kernels/CLElementWiseUnaryLayerKernel.h
arm_compute/core/CL/kernels/CLElementwiseOperationKernel.h
arm_compute/core/CL/kernels/CLErodeKernel.h
arm_compute/core/CL/kernels/CLFFTDigitReverseKernel.h
arm_compute/core/CL/kernels/CLFFTRadixStageKernel.h
arm_compute/core/CL/kernels/CLFFTScaleKernel.h
arm_compute/core/CL/kernels/CLFastCornersKernel.h
arm_compute/core/CL/kernels/CLFillBorderKernel.h
arm_compute/core/CL/kernels/CLFlattenLayerKernel.h
arm_compute/core/CL/kernels/CLFloorKernel.h
arm_compute/core/CL/kernels/CLFuseBatchNormalizationKernel.h
arm_compute/core/CL/kernels/ICLDepthwiseConvolutionLayer3x3Kernel.h
src/core/CL/CLHelpers.cpp
src/core/CL/kernels/CLAbsoluteDifferenceKernel.cpp
src/core/CL/kernels/CLAccumulateKernel.cpp
src/core/CL/kernels/CLActivationLayerKernel.cpp
src/core/CL/kernels/CLArgMinMaxLayerKernel.cpp
src/core/CL/kernels/CLBatchConcatenateLayerKernel.cpp
src/core/CL/kernels/CLBatchNormalizationLayerKernel.cpp
src/core/CL/kernels/CLBatchToSpaceLayerKernel.cpp
src/core/CL/kernels/CLBitwiseAndKernel.cpp
src/core/CL/kernels/CLBitwiseNotKernel.cpp
src/core/CL/kernels/CLBitwiseOrKernel.cpp
src/core/CL/kernels/CLBitwiseXorKernel.cpp
src/core/CL/kernels/CLBoundingBoxTransformKernel.cpp
src/core/CL/kernels/CLBox3x3Kernel.cpp
src/core/CL/kernels/CLCannyEdgeKernel.cpp
src/core/CL/kernels/CLChannelCombineKernel.cpp
src/core/CL/kernels/CLChannelExtractKernel.cpp
src/core/CL/kernels/CLChannelShuffleLayerKernel.cpp
src/core/CL/kernels/CLCol2ImKernel.cpp
src/core/CL/kernels/CLColorConvertKernel.cpp
src/core/CL/kernels/CLComparisonKernel.cpp
src/core/CL/kernels/CLConvertFullyConnectedWeightsKernel.cpp
src/core/CL/kernels/CLConvolutionKernel.cpp
src/core/CL/kernels/CLCopyKernel.cpp
src/core/CL/kernels/CLCropKernel.cpp
src/core/CL/kernels/CLDeconvolutionLayerUpsampleKernel.cpp
src/core/CL/kernels/CLDeconvolutionReshapeOutputKernel.cpp
src/core/CL/kernels/CLDepthConcatenateLayerKernel.cpp
src/core/CL/kernels/CLDepthConvertLayerKernel.cpp
src/core/CL/kernels/CLDepthToSpaceLayerKernel.cpp
src/core/CL/kernels/CLDepthwiseConvolutionLayer3x3NCHWKernel.cpp
src/core/CL/kernels/CLDepthwiseConvolutionLayer3x3NHWCKernel.cpp
src/core/CL/kernels/CLDepthwiseConvolutionLayerNativeKernel.cpp
src/core/CL/kernels/CLDepthwiseConvolutionLayerReshapeWeightsKernel.cpp
src/core/CL/kernels/CLDequantizationLayerKernel.cpp
src/core/CL/kernels/CLDerivativeKernel.cpp
src/core/CL/kernels/CLDilateKernel.cpp
src/core/CL/kernels/CLDirectConvolutionLayerKernel.cpp
src/core/CL/kernels/CLElementWiseUnaryLayerKernel.cpp
src/core/CL/kernels/CLElementwiseOperationKernel.cpp
src/core/CL/kernels/CLErodeKernel.cpp
src/core/CL/kernels/CLFFTDigitReverseKernel.cpp
src/core/CL/kernels/CLFFTRadixStageKernel.cpp
src/core/CL/kernels/CLFFTScaleKernel.cpp
src/core/CL/kernels/CLFastCornersKernel.cpp
src/core/CL/kernels/CLFillBorderKernel.cpp
src/core/CL/kernels/CLFlattenLayerKernel.cpp
src/core/CL/kernels/CLFloorKernel.cpp
src/core/CL/kernels/CLFuseBatchNormalizationKernel.cpp

index 77c17c7d9ca1c958172d1e69992c6486cb5b3eff..c5db66c664ab37b55751d242faa5d5f7bee292de 100644 (file)
@@ -206,7 +206,7 @@ cl::Kernel create_opencl_kernel(CLCoreRuntimeContext *ctx, const std::string &ke
  *
  * @return An opencl kernel
  */
-cl::Kernel create_kernel(CLCompileContext &ctx, const std::string &kernel_name, const std::set<std::string> &build_opts = std::set<std::string>());
+cl::Kernel create_kernel(const CLCompileContext &ctx, const std::string &kernel_name, const std::set<std::string> &build_opts = std::set<std::string>());
 
 /** Creates a suitable LWS hint object for parallel implementations. Sets the number of WG based on the input size.
  *  If input width is smaller than 128 we can use fewer threads than 8.
index 18896725e29076300ec9ff65bcc76cac315a6557..58dea3bdaed79dfdafb96aeb5d33f9019dd3d47b 100644 (file)
@@ -65,7 +65,7 @@ public:
      * @param[in]  input2          Source tensor. Data types supported: U8/S16.
      * @param[out] output          Destination tensor. Data types supported: U8/S16.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output);
 
     // Inherited methods overridden:
     void run(const Window &window, cl::CommandQueue &queue) override;
index d7cb09fdd3ae37e565239b3114fbaf41b54e2c55..f639148e25c9910bea8c72371ac2de45e5ecf009 100644 (file)
@@ -52,7 +52,7 @@ public:
      * @param[in]  input           Source tensor. Data types supported: U8.
      * @param[out] accum           Destination tensor. Data types supported: S16.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *accum);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *accum);
 };
 
 /** Interface for the accumulate weighted kernel.
@@ -81,7 +81,7 @@ public:
      * @param[in]     alpha           Scalar value in the range [0, 1.0]. Data types supported: F32.
      * @param[in,out] accum           Accumulated tensor. Data types supported: U8.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, float alpha, ICLTensor *accum);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, float alpha, ICLTensor *accum);
 };
 
 /** Interface for the accumulate squared kernel.
@@ -108,7 +108,7 @@ public:
      * @param[in]     shift           Shift value in the range of [0, 15]. Data types supported: U32.
      * @param[in,out] accum           Accumulated tensor. Data types supported: S16.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, uint32_t shift, ICLTensor *accum);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, uint32_t shift, ICLTensor *accum);
 };
 } // namespace arm_compute
 #endif /*ARM_COMPUTE_CLACCUMULATEKERNEL_H */
index d25480cd60cf100af698cdde30f26ff333efce53..1e83a689cdb9100787744a7548bef1dc9aa2b78d 100644 (file)
@@ -65,7 +65,7 @@ public:
      * @param[out]     output          Destination tensor. Data type supported: same as @p input
      * @param[in]      act_info        Activation layer information.
      */
-    void configure(CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, ActivationLayerInfo act_info);
+    void configure(const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, ActivationLayerInfo act_info);
     /** Static function to check if given info will lead to a valid configuration of @ref CLActivationLayerKernel
      *
      * @param[in] input    Source tensor info. In case of @p output tensor info = nullptr, this tensor will store the result
@@ -81,9 +81,9 @@ public:
     void run(const Window &window, cl::CommandQueue &queue) override;
 
 private:
-    ICLTensor            *_input;
-    ICLTensor            *_output;
-    bool                  _run_in_place;
+    ICLTensor *_input;
+    ICLTensor *_output;
+    bool       _run_in_place;
 };
 } // namespace arm_compute
 #endif /*ARM_COMPUTE_CLACTIVATIONLAYERKERNEL_H */
index 831cee5e58bbc223bd6f1d67294e7f034bfae9c1..94e8baed13437328f73a795fda05decbd378aadc 100644 (file)
@@ -76,7 +76,7 @@ public:
      * @param[in]  axis            Axis along which to reduce. Supported reduction axis : 0,1,2,3
      * @param[in]  op              Reduction operation to perform. Only ArgMin and ArgMax are supported.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *prev_output, ICLTensor *output, unsigned int axis, ReductionOperation op);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *prev_output, ICLTensor *output, unsigned int axis, ReductionOperation op);
 
     /** Static function to check if given info will lead to a valid configuration of @ref CLArgMinMaxLayerKernel.
      *
index 06764302f484d61cab5691e8d87f616357a9b778..163666853cda95abc4b917f58d12a06e21e90a23 100644 (file)
@@ -72,7 +72,7 @@ public:
      * @note: The gaps between the two lowest dimensions of input and output need to be divisible by 2.
      *
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, unsigned int batch_offset, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, unsigned int batch_offset, ICLTensor *output);
     /**  Static function to check if given info will lead to a valid configuration of @ref CLBatchConcatenateLayerKernel
      *
      * @param[in] input        Input tensor info. Data types supported: All.
index 564b21680b425dc3483817a181b262db6a274ff9..8eaaca845adfb23751f260cf1a043f9920177201 100644 (file)
@@ -81,9 +81,8 @@ public:
      * @param[in]      epsilon         (Optional) Small value to avoid division with zero. Default value is 0.001f.
      * @param[in]      act_info        (Optional) Activation layer information in case of a fused activation. Only RELU, BOUNDED_RELU and LU_BOUNDED_RELU supported.
      */
-    void configure(CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const ICLTensor *mean, const ICLTensor *var, const ICLTensor *beta = nullptr, const ICLTensor *gamma = nullptr,
-                   float               epsilon  = 0.001f,
-                   ActivationLayerInfo act_info = ActivationLayerInfo());
+    void configure(const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const ICLTensor *mean, const ICLTensor *var, const ICLTensor *beta = nullptr,
+                   const ICLTensor *gamma = nullptr, float epsilon = 0.001f, ActivationLayerInfo act_info = ActivationLayerInfo());
     /** Static function to check if given info will lead to a valid configuration of @ref CLBatchNormalizationLayerKernel
      *
      * @param[in] input    Source tensor info. In case of @p output tensor info = nullptr, this tensor will store the result.
index f9289eab733ed9d47ad0820d5d33bf47476df3fe..2b12ad094aa15b8709cea7f01014cdaf71377ecf 100644 (file)
@@ -61,7 +61,7 @@ public:
      * @param[in]  block_shape     1-D tensor with shape [M]. Data types supported: S32
      * @param[out] output          Tensor output. Data types supported: same as @p input
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *block_shape, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *block_shape, ICLTensor *output);
     /** Initialise the kernel's inputs and output (Static block shape).
      *
      * @param[in]  input         Tensor input. Supported tensor rank: 4. Data types supported: All.
@@ -78,7 +78,7 @@ public:
      * @param[in]  block_shape_y   Block shape y value.
      * @param[out] output          Tensor output. Data types supported: same as @p input
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, const int32_t block_shape_x, const int32_t block_shape_y, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, const int32_t block_shape_x, const int32_t block_shape_y, ICLTensor *output);
     /** Static function to check if given info will lead to a valid configuration of @ref CLBatchToSpaceLayerKernel
      *
      * @param[in] input       Tensor input. Supported tensor rank: 4. Data types supported: All.
index 6c60bc0f331efc29ce00c9210342bdb166ce5e16..8defe32862eb5a6030bdf493086b3a6df14cb553 100644 (file)
@@ -62,7 +62,7 @@ public:
      * @param[in]  input2          Source tensor. Data types supported: U8.
      * @param[out] output          Destination tensor. Data types supported: U8.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output);
 
     // Inherited methods overridden:
     void run(const Window &window, cl::CommandQueue &queue) override;
index 0522841e736dc408185bbbd664fbacd8d18aec75..b86ce7f17331440feb6228bbed0a0cd650d3f061 100644 (file)
@@ -50,7 +50,7 @@ public:
      * @param[in]  input           Source tensor. Data types supported: U8.
      * @param[out] output          Destination tensor. Data types supported: U8.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output);
 };
 } // namespace arm_compute
 #endif /* ARM_COMPUTE_CLBITWISENOTKERNEL_H */
index 151f19d3741289432c5fa48bb369e74b54cd549b..65eb50f0fd68d3e4098d0a0614ff38ea36478346 100644 (file)
@@ -62,7 +62,7 @@ public:
      * @param[in]  input2          Source tensor. Data types supported: U8.
      * @param[out] output          Destination tensor. Data types supported: U8.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output);
 
     // Inherited methods overridden:
     void run(const Window &window, cl::CommandQueue &queue) override;
index 03c1e05da48a188fc458e1e457d46f9da191b1bc..5c63a7f22c799c3bee7f359b2d4336e157ee22a8 100644 (file)
@@ -62,7 +62,7 @@ public:
      * @param[in]  input2          Source tensor. Data types supported: U8.
      * @param[out] output          Destination tensor. Data types supported: U8.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output);
 
     // Inherited methods overridden:
     void run(const Window &window, cl::CommandQueue &queue) override;
index ffa63bd5a4dc4a09466d1bbf1ae7de0455b07426..bbe11562ed3cef1b69b105460d8814412a57aff9 100644 (file)
@@ -71,7 +71,7 @@ public:
      * @note Only single image prediction is supported. Height and Width (and scale) of the image will be contained in the BoundingBoxTransformInfo struct.
      *
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *boxes, ICLTensor *pred_boxes, const ICLTensor *deltas, const BoundingBoxTransformInfo &info);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *boxes, ICLTensor *pred_boxes, const ICLTensor *deltas, const BoundingBoxTransformInfo &info);
 
     /** Static function to check if given info will lead to a valid configuration of @ref CLBoundingBoxTransform
      *
index 572ae87d9a2a269c9040cc8d6dc69a0587d26d34..ea3c1c1f3ed2dfce34df36da30eadd4e40b6d9f7 100644 (file)
@@ -50,7 +50,7 @@ public:
      * @param[out] output           The output tensor. Data types supported: U8.
      * @param[in]  border_undefined True if the border mode is undefined. False if it's replicate or constant.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, bool border_undefined);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, bool border_undefined);
 
     //Inherited methods overriden:
     BorderSize border_size() const override;
index 67c23dd81138b6cf92183e31c663c9b713bde16d..40ad4dcd84aa237703a6f3d6648561d5ac0ee7aa 100644 (file)
@@ -65,7 +65,7 @@ public:
      * @param[out] phase           Destination tensor - Quantized phase. Data types supported: U8.
      * @param[in]  norm_type       Normalization type. if 1, L1-Norm otherwise L2-Norm.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *gx, const ICLTensor *gy, ICLTensor *magnitude, ICLTensor *phase, int32_t norm_type);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *gx, const ICLTensor *gy, ICLTensor *magnitude, ICLTensor *phase, int32_t norm_type);
 
     // Inherited methods overridden:
     void run(const Window &window, cl::CommandQueue &queue) override;
@@ -111,7 +111,7 @@ public:
      * @param[in]  lower_thr        Lower threshold.
      * @param[in]  border_undefined True if the border mode is undefined. False if it's replicate or constant.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *magnitude, const ICLTensor *phase, ICLTensor *output, int32_t lower_thr, bool border_undefined);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *magnitude, const ICLTensor *phase, ICLTensor *output, int32_t lower_thr, bool border_undefined);
 
     // Inherited methods overridden:
     void run(const Window &window, cl::CommandQueue &queue) override;
@@ -167,7 +167,7 @@ public:
      * @param[in,out] l1_stack_counter Tensor for counting the elements in the L1 stack of each pixel. Data types supported: U8.
      *                                              Expected to be initialized to 0 before each run.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, int32_t upper_thr, int32_t lower_thr,
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, int32_t upper_thr, int32_t lower_thr,
                    ICLTensor *visited, ICLTensor *recorded, ICLTensor *l1_stack, ICLTensor *l1_stack_counter);
 
     // Inherited methods overridden:
index 60d0bd4a459c839b351a0aa39d050d3bbdd80623..32ddf152c35ac377a9b7d13aa1ef108969ec7c43 100644 (file)
@@ -69,7 +69,7 @@ public:
      * @param[in]  plane3          The 2D plane that forms channel 3. Must be of U8 format.
      * @param[out] output          The single planar output tensor.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *plane0, const ICLTensor *plane1, const ICLTensor *plane2, const ICLTensor *plane3, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *plane0, const ICLTensor *plane1, const ICLTensor *plane2, const ICLTensor *plane3, ICLTensor *output);
     /** Configure function's inputs and outputs.
      *
      * @param[in]  plane0 The 2D plane that forms channel 0. Must be of U8 format.
@@ -86,7 +86,7 @@ public:
      * @param[in]  plane2          The 2D plane that forms channel 2. Must be of U8 format.
      * @param[out] output          The multi planar output tensor.
      */
-    void configure(CLCompileContext &compile_context, const ICLImage *plane0, const ICLImage *plane1, const ICLImage *plane2, ICLMultiImage *output);
+    void configure(const CLCompileContext &compile_context, const ICLImage *plane0, const ICLImage *plane1, const ICLImage *plane2, ICLMultiImage *output);
 
     // Inherited methods overridden:
     void run(const Window &window, cl::CommandQueue &queue) override;
index 1f2cc8900acb9e5bfc6ae4bda1e0b61592a3bd2c..6a0c4bb94e0daab784ed8e03ffbce744cf82dbeb 100644 (file)
@@ -65,7 +65,7 @@ public:
      * @param[in]  channel         Channel to extract.
      * @param[out] output          Destination tensor. Must be of U8 format.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, Channel channel, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, Channel channel, ICLTensor *output);
     /** Set the input and output of the kernel
      *
      * @param[in]  input   Multi-planar source image. Formats supported: NV12/NV21/IYUV/YUV444
@@ -80,7 +80,7 @@ public:
      * @param[in]  channel         Channel to extract.
      * @param[out] output          Single-planar 2D destination image. Must be of U8 format.
      */
-    void configure(CLCompileContext &compile_context, const ICLMultiImage *input, Channel channel, ICLImage *output);
+    void configure(const CLCompileContext &compile_context, const ICLMultiImage *input, Channel channel, ICLImage *output);
 
     // Inherited methods overridden:
     void run(const Window &window, cl::CommandQueue &queue) override;
index 921c20df10cc399dda810729f4ef7d18bfc51dfb..14b59d325f2e9eb59b975bf94756c6691287d942 100644 (file)
@@ -60,7 +60,7 @@ public:
      * @param[out] output          Output tensor. Data type supported: Same as @p input
      * @param[in]  num_groups      Number of groups. Must be greater than 1 and the number of channels of the tensors must be a multiple of the number of groups.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, unsigned int num_groups);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, unsigned int num_groups);
     /** Static function to check if given info will lead to a valid configuration of @ref CLChannelShuffleLayerKernel
      *
      * @param[in] input      Input tensor info. Data types supported: All.
index 6ef424853e2ebb6593a40b407f7fe01ed2e04cda..d0528ed21a64be927e94a75b7bd6ffcaffd652a8 100644 (file)
@@ -81,7 +81,7 @@ public:
      * @param[in]  convolved_dims  Output convolved dimensions.
      * @param[in]  num_groups      (Optional) Number of groups when performing a grouped convolution
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const Size2D &convolved_dims, unsigned int num_groups = 1);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const Size2D &convolved_dims, unsigned int num_groups = 1);
     /** Static function to check if given info will lead to a valid configuration of @ref CLCol2ImKernel
      *
      * @param[in] input          The input tensor to convert. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32
index 25b95eb42c13273d3cfd63c66ca8348b6a1210f2..2bcd141863577c1d30dc1213db729b12be0c96ff 100644 (file)
@@ -67,7 +67,7 @@ public:
      *                                                          RGBA8888 (if the formats of @p input are UYVY422/YUYV422/RGB888/),
      *                                                          U8 (if the formats of @p input is RGB888)
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output);
     /** Set the input and output of the kernel
      *
      * @param[in]  input  Multi-planar source image. Formats supported: NV12/NV21/IYUV
@@ -80,7 +80,7 @@ public:
      * @param[in]  input           Multi-planar source image. Formats supported: NV12/NV21/IYUV
      * @param[out] output          Single-planar destination image. Formats supported: RGB888/RGBA8888
      */
-    void configure(CLCompileContext &compile_context, const ICLMultiImage *input, ICLImage *output);
+    void configure(const CLCompileContext &compile_context, const ICLMultiImage *input, ICLImage *output);
     /** Set the input and output of the kernel
      *
      * @param[in]  input  Single-planar source image. Formats supported: RGB888/RGBA8888/UYVY422/YUYV422
@@ -93,7 +93,7 @@ public:
      * @param[in]  input           Single-planar source image. Formats supported: RGB888/RGBA8888/UYVY422/YUYV422
      * @param[out] output          Multi-planar destination image. Formats supported: NV12/IYUV/YUV444 (if the formats of @p input are RGB888/RGB8888)
      */
-    void configure(CLCompileContext &compile_context, const ICLImage *input, ICLMultiImage *output);
+    void configure(const CLCompileContext &compile_context, const ICLImage *input, ICLMultiImage *output);
     /** Set the input and output of the kernel
      *
      * @param[in]  input  Multi-planar source image. Formats supported: NV12/NV21/IYUV
@@ -106,7 +106,7 @@ public:
      * @param[in]  input           Multi-planar source image. Formats supported: NV12/NV21/IYUV
      * @param[out] output          Multi-planar destination image. Formats supported: YUV444/IYUV (if the formats of @p input are NV12/NV21)/NV12 (if the format of  @p input is IYUV)
      */
-    void configure(CLCompileContext &compile_context, const ICLMultiImage *input, ICLMultiImage *output);
+    void configure(const CLCompileContext &compile_context, const ICLMultiImage *input, ICLMultiImage *output);
 
     // Inherited methods overridden:
     void run(const Window &window, cl::CommandQueue &queue) override;
index 15779938b2824079028d2feb4d2ea7c124fdf112..d5c5297c61ecdc9380276af0eb045ef5e894d87b 100644 (file)
@@ -64,7 +64,7 @@ public:
      * @param[out] output          Destination tensor. Data types supported: U8.
      * @param[in]  operation       Comparison operation to use.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output, ComparisonOperation operation);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output, ComparisonOperation operation);
     /** Static function to check if given info will lead to a valid configuration of @ref CLComparisonKernel
      *
      * @param[in] input1    Source tensor. Data types supported: All.
index f7e212e1e4c0a499b92a369044310c46533a1950..d3e57a673813f9514412dcb140967f176917a1ad 100644 (file)
@@ -69,7 +69,7 @@ public:
      * @param[in]  original_input_shape Shape of the original input tensor (the one entering fully connected layer).
      * @param[in]  data_layout          The data layout the weights have been trained in.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const TensorShape &original_input_shape, DataLayout data_layout);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const TensorShape &original_input_shape, DataLayout data_layout);
     /** Static function to check if given info will lead to a valid configuration of @ref CLConvertFullyConnectedWeightsKernel
      *
      * @param[in] input                Source weights tensor info to convert. Must be 2 dimensional. Data types supported: All.
index e1cdc88007ff2646a883376c6565dd39af2df064..b6fe51dbaa5318def15f151c52ef73834b3afaf5 100644 (file)
@@ -70,7 +70,7 @@ public:
      * @param[in]  scale            Scale of the convolution matrix. If 0 is passed, it will be set to the sum of the coefficients of the convolution or 1 if they add up to 0.
      * @param[in]  border_undefined True if the border mode is undefined. False if it's replicate or constant.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, uint32_t scale, bool border_undefined);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, uint32_t scale, bool border_undefined);
 
     // Inherited methods overridden:
     BorderSize border_size() const override;
@@ -112,7 +112,7 @@ public:
      * @param[in]  conv             Convolution matrix to apply to the input tensor.
      * @param[in]  border_undefined True if the border mode is undefined. False if it's replicate or constant.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, bool border_undefined);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, bool border_undefined);
 
     // Inherited methods overridden:
     BorderSize border_size() const override;
@@ -153,7 +153,7 @@ public:
      * @param[in]  border_undefined True if the border mode is undefined. False if it's replicate or constant.
      * @param[in]  data_type        Data type to use for intermeidate result. @sa data_type_for_convolution
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, uint32_t scale, bool border_undefined, DataType data_type = DataType::S32);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, uint32_t scale, bool border_undefined, DataType data_type = DataType::S32);
 
     // Inherited methods overridden:
     BorderSize border_size() const override;
@@ -209,7 +209,7 @@ public:
      * @param[in]  scale            Scale of the convolution matrix. If 0 is passed, it will be set to the sum of the coefficients of the convolution or 1 if they add up to 0.
      * @param[in]  border_undefined True if the border mode is undefined. False if it's replicate or constant.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, uint32_t width, uint32_t height, uint32_t scale, bool border_undefined);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, uint32_t width, uint32_t height, uint32_t scale, bool border_undefined);
 
     // Inherited methods overridden:
     void run(const Window &window, cl::CommandQueue &queue) override;
index 1774f8ccadf70a0300fbd2c14f7c8a9a8c1b1e17..05dff8ed0c1fc4a259952c7c55d743bac85939ad 100644 (file)
@@ -61,7 +61,7 @@ public:
      * @param[in]  padding         (Optional) Padding to be applied to the input tensor
      * @param[in]  output_window   (Optional) Window to be used in case only copying into part of a tensor. Default is nullptr.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const PaddingList &padding = PaddingList(), Window *output_window = nullptr);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const PaddingList &padding = PaddingList(), Window *output_window = nullptr);
     /** Static function to check if given info will lead to a valid configuration of @ref CLCopyKernel
      *
      * @param[in] input         Source tensor info. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32.
index 103986a5f80462d5aae5ec14943484a17a10d254..a1c6f901eba056bc64735dc17245726bad03f9e6 100644 (file)
@@ -71,7 +71,7 @@ public:
      * @param[in]  extrapolation_value Value to be used for values outside of the image. Default is 0.
      * @param[in]  output_window       Output window to be used in case cropped image is being copied into a tensor. Default is nullptr.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, Coordinates2D start, Coordinates2D end, uint32_t batch_index, float extrapolation_value = 0,
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, Coordinates2D start, Coordinates2D end, uint32_t batch_index, float extrapolation_value = 0,
                    Window *output_window = nullptr);
 
     /** Static function to check if given info will lead to a valid configuration of @ref CLStridedSliceKernel
index 7e8a45fd8fda58e11ccd4e253d393f5a03424551..0c65f519cc4759fb06adbd01073126055e1ffd5a 100644 (file)
@@ -62,7 +62,7 @@ public:
      * @param[out] output          Destination tensor. Data types supported: same as @p input. All but the lowest two dimensions must be the same size as in the input tensor, i.e. scaling is only performed within the XY-plane.
      * @param[in]  info            Contains padding and stride information described in @ref PadStrideInfo.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const PadStrideInfo &info);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const PadStrideInfo &info);
     /** Static function to check if given info will lead to a valid configuration of @ref CLDeconvolutionLayerUpsample
      *
      * @param[in] input  Source tensor info. Data types supported: All.
index daeb8c1f9cf3e0ae1dec3d86f9eb7f11c98c7489..292c561e4648716d11593e6ffafa2df3809ac532 100644 (file)
@@ -79,7 +79,7 @@ public:
      * @param[in]  weights_info    Deconvolution weights tensor info. Supported data types: same as @p input.  Supported data layouts: same as @p input.
      * @param[in]  deconv_info     Contains padding and policies to be used in the deconvolution, this is described in @ref PadStrideInfo. This kernel supports only stride_x = weights.width && stride_y = weights.height. Moreover, padding is not supported.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *bias, ICLTensor *output, const ITensorInfo *input_info, const ITensorInfo *weights_info,
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *bias, ICLTensor *output, const ITensorInfo *input_info, const ITensorInfo *weights_info,
                    const PadStrideInfo &deconv_info);
 
     /** Static function to check if given info will lead to a valid configuration of @ref  CLDeconvolutionReshapeOutputKernel.
index 7b594417d6b861f101366d37c3d74796a90e9db8..5fe826d09089fea28d9e2ee99238d25a2c0525bc 100644 (file)
@@ -72,7 +72,7 @@ public:
      * @note: The gaps between the two lowest dimensions of input and output need to be divisible by 2.
      *
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, unsigned int depth_offset, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, unsigned int depth_offset, ICLTensor *output);
     /**  Static function to check if given info will lead to a valid configuration of @ref CLDepthConcatenateLayerKernel
      *
      * @param[in] input        Input tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32
index 8bbf9b3dceff44ffdb158ffb4e7d7e6fb11c02cd..66eb6222b2927e9c397921d41e1c0b6280103e76 100644 (file)
@@ -75,7 +75,7 @@ public:
      * @param[in]  policy          Conversion policy
      * @param[in]  shift           Value for down/up conversions. Must be 0 <= shift < 8.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, ConvertPolicy policy, uint32_t shift);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, ConvertPolicy policy, uint32_t shift);
     /** Static function to check if given info will lead to a valid configuration of @ref CLDepthConvertLayerKernel
      *
      * @param[in] input  Source tensor info. Data types supported: U8/S8/QSYMM8_PER_CHANNEL/U16/S16/U32/S32/F16/F32.
index 541506b5212a7892aff9919d7b96861367c8ebaa..87ac3c1ec10dbc2eac2f93f9e2f5f286a444b41a 100644 (file)
@@ -61,7 +61,7 @@ public:
      * @param[out] output          Tensor output. Data types supported: same as @p input
      * @param[in]  block_shape     Block shape value.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, int32_t block_shape);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, int32_t block_shape);
     /** Static function to check if given info will lead to a valid configuration of @ref CLDepthToSpaceLayerKernel.
      *
      * @param[in] input       Tensor input info. Supported tensor rank: 4. Data types supported: All.
index f68fde473738ca3f07bf21d3dc86b1c75d487088..6cf0326467af46f83e8e61e50757b53e55074f7a 100644 (file)
@@ -75,7 +75,7 @@ public:
      * @param[in]  output_shifts      (Optional) Output shifts tensor for quantized computations. In case of per-channel quantization,
      *                                the number of multipliers must be equal to the number of filters (IFM). Supported data types: S32
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output, const PadStrideInfo &conv_info,
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output, const PadStrideInfo &conv_info,
                    unsigned int depth_multiplier = 1, ActivationLayerInfo act_info = ActivationLayerInfo(), const Size2D &dilation = Size2D(1U, 1U),
                    const ICLTensor *output_multipliers = nullptr, const ICLTensor *output_shifts = nullptr) override;
     /** Static function to check if given info will lead to a valid configuration of @ref CLDepthwiseConvolutionLayer3x3NCHWKernel
index f9fda0a42c6a41ec5903468576f6df3b0f6fe834..e564cf6fe04f29118f64d082a11aa715610fceee 100644 (file)
@@ -76,7 +76,7 @@ public:
      * @param[in]  output_shifts      (Optional) Output shifts tensor for quantized computations. In case of per-channel quantization,
      *                                the number of multipliers must be equal to the number of filters (IFM). Supported data types: S32
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output, const PadStrideInfo &conv_info,
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output, const PadStrideInfo &conv_info,
                    unsigned int depth_multiplier = 1, ActivationLayerInfo act_info = ActivationLayerInfo(), const Size2D &dilation = Size2D(1U, 1U),
                    const ICLTensor *output_multipliers = nullptr, const ICLTensor *output_shifts = nullptr) override;
     /** Static function to check if given info will lead to a valid configuration of @ref CLDepthwiseConvolutionLayer3x3NHWCKernel
index db26b4a06f6a0b75832c7df16fb988f7ae979705..8847cf9c463742b070d5ab912f09334a5a85060d 100644 (file)
@@ -87,7 +87,7 @@ public:
      * @param[in]  output_shifts      (Optional) Output shifts tensor for quantized computations. In case of per-channel quantization,
      *                                the number of multipliers must be equal to the number of filters (IFM). Supported data types: S32
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output, const DWCWeightsKernelInfo &dwc_weights_info,
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output, const DWCWeightsKernelInfo &dwc_weights_info,
                    const DWCKernelInfo &dwc_info, const PadStrideInfo &conv_info, unsigned int depth_multiplier = 1, const Size2D &dilation = Size2D(1U, 1U),
                    const ICLTensor *output_multipliers = nullptr, const ICLTensor *output_shifts = nullptr);
     /** Static function to check if given info will lead to a valid configuration of @ref CLDepthwiseConvolutionLayerNativeKernel
index e7fc6f8d818c05ff8c5ee48c3aabf43500748711..8dc5d32e4fa62488b02de829fe31f1a9767024d8 100644 (file)
@@ -59,7 +59,7 @@ public:
      * @param[out] output          The output tensor of dimension [W*H*C0, ceil(IFM/C0)]. C0 is the number of channels read by each thread. Data types supported: same as @p weights.
      * @param[in]  info            Depthwise convolution information to reshape the input tensor.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const DepthwiseConvolutionReshapeInfo &info);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const DepthwiseConvolutionReshapeInfo &info);
 
     /** Static function to check if given info will lead to a valid configuration of @ref CLDepthwiseConvolutionLayer3x3NHWCKernel
      *
index 4cb13393003004ed9d69c745178db46f9a8e5a40..bb154f1a5be0678c7043bebf71893103a58af72e 100644 (file)
@@ -58,7 +58,7 @@ public:
      * @param[in]  input           Source tensor. Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/QSYMM8/QSYMM16.
      * @param[out] output          Destination tensor. Data types supported: F16/F32.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output);
     /** Static function to check if given info will lead to a valid configuration of @ref CLDequantizationLayerKernel
      *
      * @param[in] input  Input tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/QSYMM8/QSYMM16.
index 5d5ad860f362caa75db948ff3c91809ce7e248eb..cd8ae90c2dc234fac30d0ddbbba14fff22c33fc5 100644 (file)
@@ -66,7 +66,7 @@ public:
      * @param[out] output_y         (Optional) Destination tensor for the Y gradient, Data types supported: S16.
      * @param[in]  border_undefined True if the border mode is undefined. False if it's replicate or constant.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output_x, ICLTensor *output_y, bool border_undefined);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output_x, ICLTensor *output_y, bool border_undefined);
 
     // Inherited methods overridden:
     void run(const Window &window, cl::CommandQueue &queue) override;
index 9c41a84b31c75e81fa8a7ee9c245b8a57dcb973f..45f5fe0764ba0060783809cfee60649f7586a09d 100644 (file)
@@ -50,7 +50,7 @@ public:
      * @param[out] output           The output tensor. Data types supported: U8.
      * @param[in]  border_undefined True if the border mode is undefined. False if it's replicate or constant.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, bool border_undefined);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, bool border_undefined);
 
     // Inherited methods overridden:
     BorderSize border_size() const override;
index f1409b63393a3c7a9459b250ab4723b3559cf0da..489d7c27c5440092321354f1026b29b392787b4b 100644 (file)
@@ -88,7 +88,7 @@ public:
      *                             The 3rd dimensions must be equal to the 4th dimension of the @p kernels tensor. Data types supported: Same as @p input.
      * @param[in]  conv_info       Contains padding and stride information described in @ref PadStrideInfo.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output, const PadStrideInfo &conv_info);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output, const PadStrideInfo &conv_info);
     /** Static function to check if given info will lead to a valid configuration of @ref CLDirectConvolutionLayerKernel
      *
      * @param[in] input     The input tensor to convolve. 3 lower dimensions represent a single input [width, height, IFM],
index 1f76992b96995e61587d46360fc6e0f95f7ad3f0..e190bdebbe8917f66cc64f8362a12ad7a428c493 100644 (file)
@@ -50,7 +50,7 @@ public:
      * @param[out] output          Output tensor. Data types supported: Same as @p input.
      * @param[in]  op              Element wise unary operation to perform.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const ElementWiseUnary &op);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const ElementWiseUnary &op);
     /** Static function to check if given info will lead to a valid configuration of @ref CLElementWiseUnaryLayerKernel
      *
      * @param[in] input  First tensor input info. Data types supported: F16/F32.
index 2f1060126a4339e1ef4cd071e804586d4c0cd025..4d3d4bc834e3741d7224d52a7ca1375b3a24598f 100644 (file)
@@ -99,7 +99,7 @@ protected:
     /** Commmon configure function for element-wise operators with no additional options (e.g., Div, Min, Max, SquaredDiff)
      *
      */
-    void configure_common(CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output);
+    void configure_common(const CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output);
 
     ActivationLayerInfo _act_info;
 
@@ -138,7 +138,7 @@ public:
      * @param[in] policy          Policy to use to handle overflow.
      * @param[in] act_info        (Optional) Activation layer information in case of a fused activation.
      */
-    void configure(CLCompileContext &compile_context, ArithmeticOperation op, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output, const ConvertPolicy &policy,
+    void configure(const CLCompileContext &compile_context, ArithmeticOperation op, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output, const ConvertPolicy &policy,
                    const ActivationLayerInfo &act_info = ActivationLayerInfo());
 
     /** Static function to check if given info will lead to a valid configuration of @ref CLSaturatedArithmeticOperationKernel
@@ -194,7 +194,7 @@ public:
      * @param[in] output          Output tensor. Data types supported: Same as @p input1.
      * @param[in] act_info        (Optional) Activation layer information in case of a fused activation.
      */
-    void configure(CLCompileContext &compile_context, ArithmeticOperation op, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output,
+    void configure(const CLCompileContext &compile_context, ArithmeticOperation op, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output,
                    const ActivationLayerInfo &act_info = ActivationLayerInfo());
 
     /** Static function to check if given info will lead to a valid configuration of @ref CLArithmeticOperationKernel
index 8ba6ff8408024622138a1d48ed1254043708ec30..cbc748194c9020e8bb7ca667398ec94b0183f143 100644 (file)
@@ -50,7 +50,7 @@ public:
      * @param[out] output           The output tensor. Data types supported: U8.
      * @param[in]  border_undefined True if the border mode is undefined. False if it's replicate or constant.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, bool border_undefined);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, bool border_undefined);
 
     // Inherited methods overridden:
     BorderSize border_size() const override;
index eac03ff868497b1614c403c344b539398451c600..a8da1246bbafdc7909b749255bff6ec178fb64f7 100644 (file)
@@ -65,7 +65,7 @@ public:
      * @param[in]  idx             Digit reverse index tensor. Data type supported: U32
      * @param[in]  config          Kernel configuration.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const ICLTensor *idx, const FFTDigitReverseKernelInfo &config);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const ICLTensor *idx, const FFTDigitReverseKernelInfo &config);
     /** Static function to check if given info will lead to a valid configuration of @ref CLFFTDigitReverseKernel
      *
      * @param[in] input  Source tensor info. Data types supported: F32.
index 85bf4cce6679942faf28079917b8b024dc12c076..e3f53462d9af8cad647d602f8afd80eb2ea5bb9e 100644 (file)
@@ -69,7 +69,7 @@ public:
      * @param[out]    output          Destination tensor. Can be nullptr. Data type supported: same as @p input
      * @param[in]     config          FFT descriptor metadata.
      */
-    void configure(CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const FFTRadixStageKernelInfo &config);
+    void configure(const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const FFTRadixStageKernelInfo &config);
     /** Static function to check if given info will lead to a valid configuration of @ref CLFFTRadixStageKernel
      *
      * @param[in] input  Source tensor info. Data types supported: F32.
index cd4fe58b9c40f36d7129212cacc57677e198c75d..d0d2b7613c69674a5cada1b11649d66ef2dc4d13 100644 (file)
@@ -63,7 +63,7 @@ public:
      * @param[out]    output          Destination tensor. Data type supported: same as @p input
      * @param[in]     config          Kernel configuration
      */
-    void configure(CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const FFTScaleKernelInfo &config);
+    void configure(const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const FFTScaleKernelInfo &config);
     /** Static function to check if given info will lead to a valid configuration of @ref CLFFTScaleKernel
      *
      * @param[in] input  Source tensor info. Data types supported: F32.
index 2a6102036f3381471393be57e2d01405c19ae1c7..1a0d4e36a544d276073d5e61fab474fbf5ba5621 100644 (file)
@@ -75,7 +75,7 @@ public:
      * @param[in]  non_max_suppression True if non-maxima suppresion is applied, false otherwise.
      * @param[in]  border_mode         Strategy to use for borders.
      */
-    void configure(CLCompileContext &compile_context, const ICLImage *input, ICLImage *output, float threshold, bool non_max_suppression, BorderMode border_mode);
+    void configure(const CLCompileContext &compile_context, const ICLImage *input, ICLImage *output, float threshold, bool non_max_suppression, BorderMode border_mode);
 
     // Inherited methods overridden
     void run(const Window &window, cl::CommandQueue &queue) override;
@@ -119,7 +119,7 @@ public:
      * @param[out] corners         Array of keypoints to store the results.
      * @param[out] num_buffers     Number of keypoints to store the results.
      */
-    void configure(CLCompileContext &compile_context, const ICLImage *input, bool update_number, ICLKeyPointArray *corners, cl::Buffer *num_buffers);
+    void configure(const CLCompileContext &compile_context, const ICLImage *input, bool update_number, ICLKeyPointArray *corners, cl::Buffer *num_buffers);
 
     // Inherited methods overridden:
     void run(const Window &window, cl::CommandQueue &queue) override;
index 226b611bcbe393656ca266e13a1333287d6dc47b..d00ea55a8377653e64aa58fe1937832b14562452 100644 (file)
@@ -65,7 +65,7 @@ public:
      * @param[in]     border_mode           Border mode to use for the convolution.
      * @param[in]     constant_border_value (Optional) Constant value to use for borders if border_mode is set to CONSTANT.
      */
-    void configure(CLCompileContext &compile_context, ICLTensor *tensor, BorderSize border_size, BorderMode border_mode, const PixelValue &constant_border_value = PixelValue());
+    void configure(const CLCompileContext &compile_context, ICLTensor *tensor, BorderSize border_size, BorderMode border_mode, const PixelValue &constant_border_value = PixelValue());
 
     /** Function to set the constant value on fill border kernel depending on type.
      *
index b795e03a349a70ff6c0d525ed9df226e9a2470a1..ab009e1aa8b8b9dba086015d1b0b388ac02c7515 100644 (file)
@@ -60,7 +60,7 @@ public:
      * @param[out] output          Output tensor with shape [w*h*d, input_batches] where:
      *                    w = width input tensor, h = height input tensor and d = depth input tensor. Data type supported: same as @p input
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output);
     /** Static function to check if given info will lead to a valid configuration of @ref CLFlattenLayerKernel
      *
      * @param[in]  input  First input tensor to flatten with at least 3 dimensions.
index a3ccb96c615797f7b58f8aa38c42e14d069600af..4d1ed789db46855edc96b9b84f23ac48b528a060 100644 (file)
@@ -59,7 +59,7 @@ public:
      * @param[in]  input           Source tensor. Data type supported: F16/F32.
      * @param[out] output          Destination tensor. Same as @p input
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output);
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output);
 
     /** Static function to check if given info will lead to a valid configuration of @ref CLFloorKernel
      *
index 2d62a576bbe8168112004d61083ed1bb1dfc7d2d..2fe6b223ca4caa86ece148d089699a9e9a5eff86 100644 (file)
@@ -81,7 +81,7 @@ public:
      * @param[in]  epsilon         (Optional) Batch normalization layer epsilon parameter. Defaults to 0.001f.
      * @param[in]  fbn_type        (Optional) Fused batch normalization type. Defaults to CONVOLUTION.
      */
-    void configure(CLCompileContext &compile_context, const ICLTensor *input_weights, const ICLTensor *bn_mean, const ICLTensor *bn_var, ICLTensor *fused_weights, ICLTensor *fused_bias,
+    void configure(const CLCompileContext &compile_context, const ICLTensor *input_weights, const ICLTensor *bn_mean, const ICLTensor *bn_var, ICLTensor *fused_weights, ICLTensor *fused_bias,
                    const ICLTensor *input_bias = nullptr, const ICLTensor *bn_beta = nullptr, const ICLTensor *bn_gamma = nullptr,
                    float epsilon = 0.001f, FuseBatchNormalizationType fbn_type = FuseBatchNormalizationType::CONVOLUTION);
     /** Static function to check if given info will lead to a valid configuration of @ref CLFuseBatchNormalizationKernel
index 040ca157ded7b0eaccff432af1542f614202e3ee..f0f7754960f88a1aa1488abea86f82bc582f728f 100644 (file)
@@ -86,7 +86,7 @@ public:
      * @param[in]  output_shifts      (Optional) Output shifts tensor for quantized computations. In case of per-channel quantization,
      *                                the number of multipliers must be equal to the number of filters (IFM). Supported data types: S32
      */
-    virtual void configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output, const PadStrideInfo &conv_info,
+    virtual void configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output, const PadStrideInfo &conv_info,
                            unsigned int depth_multiplier = 1, ActivationLayerInfo act_info = ActivationLayerInfo(), const Size2D &dilation = Size2D(1U, 1U),
                            const ICLTensor *output_multipliers = nullptr, const ICLTensor *output_shifts = nullptr) = 0;
 
index 7d1b0ea6c79ee3f006beb8ac9cd44822530c415b..15f45d52d9223db2e755e542cff333b2feed6304 100644 (file)
@@ -384,7 +384,7 @@ cl::Kernel create_opencl_kernel(CLCoreRuntimeContext *ctx, const std::string &ke
     }
 }
 
-cl::Kernel create_kernel(CLCompileContext &ctx, const std::string &kernel_name, const std::set<std::string> &build_opts)
+cl::Kernel create_kernel(const CLCompileContext &ctx, const std::string &kernel_name, const std::set<std::string> &build_opts)
 {
     const std::string program_name = CLKernelLibrary::get().get_program_name(kernel_name);
     std::pair<std::string, bool> kernel_src = CLKernelLibrary::get().get_program(program_name);
index 52ca1d1710f70435879d02a4eae8c696998788f2..5b03fb56e775dfac45b5a1e5c7d4d00b3d8b8cb6 100644 (file)
@@ -49,7 +49,7 @@ void CLAbsoluteDifferenceKernel::configure(const ICLTensor *input1, const ICLTen
     configure(CLKernelLibrary::get().get_compile_context(), input1, input2, output);
 }
 
-void CLAbsoluteDifferenceKernel::configure(CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output)
+void CLAbsoluteDifferenceKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input1, 1, DataType::U8, DataType::S16);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input2, 1, DataType::U8, DataType::S16);
index aa13b4a2076a1a79576cfdd8c470e9b3654333eb..a7dfcdca9ba9649c3d09eb977cc2d5e22f2fddec 100644 (file)
@@ -43,7 +43,7 @@ void CLAccumulateKernel::configure(const ICLTensor *input, ICLTensor *accum)
     configure(CLKernelLibrary::get().get_compile_context(), input, accum);
 }
 
-void CLAccumulateKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *accum)
+void CLAccumulateKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *accum)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U8);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(accum, 1, DataType::S16);
@@ -60,7 +60,7 @@ void CLAccumulateWeightedKernel::configure(const ICLTensor *input, float alpha,
     configure(CLKernelLibrary::get().get_compile_context(), input, alpha, accum);
 }
 
-void CLAccumulateWeightedKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, float alpha, ICLTensor *accum)
+void CLAccumulateWeightedKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, float alpha, ICLTensor *accum)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U8);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(accum, 1, DataType::U8);
@@ -82,7 +82,7 @@ void CLAccumulateSquaredKernel::configure(const ICLTensor *input, uint32_t shift
     configure(CLKernelLibrary::get().get_compile_context(), input, shift, accum);
 }
 
-void CLAccumulateSquaredKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, uint32_t shift, ICLTensor *accum)
+void CLAccumulateSquaredKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, uint32_t shift, ICLTensor *accum)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U8);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(accum, 1, DataType::S16);
index 15ae8e3d047d3f430cd58dd6ba27eeaaa280c13a..d40e9a15bef257c1aac167960361fe3bafec1c70 100644 (file)
@@ -125,7 +125,7 @@ void CLActivationLayerKernel::configure(ICLTensor *input, ICLTensor *output, Act
     configure(CLKernelLibrary::get().get_compile_context(), input, output, act_info);
 }
 
-void CLActivationLayerKernel::configure(CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, ActivationLayerInfo act_info)
+void CLActivationLayerKernel::configure(const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, ActivationLayerInfo act_info)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input);
 
index 4e33744094c9d08f8a3a03f1fe25aefe86a03c94..b86e43e6fba9e738d32a31b6df8a002771bfd7a2 100644 (file)
@@ -119,7 +119,7 @@ void CLArgMinMaxLayerKernel::configure(const ICLTensor *input, const ICLTensor *
     configure(CLKernelLibrary::get().get_compile_context(), input, prev_output, output, axis, op);
 }
 
-void CLArgMinMaxLayerKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *prev_output, ICLTensor *output, unsigned int axis, ReductionOperation op)
+void CLArgMinMaxLayerKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *prev_output, ICLTensor *output, unsigned int axis, ReductionOperation op)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(input->info(), (prev_output != nullptr) ? prev_output->info() : nullptr, output->info(), axis, op));
index 610d8e8f62ca346b3712c5f18c07a90c60f7655f..2182019a404fd45e066264aa6aaf7e5bec726e64 100644 (file)
@@ -89,7 +89,7 @@ void CLBatchConcatenateLayerKernel::configure(const ICLTensor *input, unsigned i
     configure(CLKernelLibrary::get().get_compile_context(), input, batch_offset, output);
 }
 
-void CLBatchConcatenateLayerKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, unsigned int batch_offset, ICLTensor *output)
+void CLBatchConcatenateLayerKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, unsigned int batch_offset, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(input->info(), batch_offset, output->info()));
index 8776541536ea6bea30b1ca8a523eb7fc66b35e98..9db175d92221473965ebbb04fbc91b0c0339653b 100644 (file)
@@ -142,7 +142,7 @@ void CLBatchNormalizationLayerKernel::configure(ICLTensor *input, ICLTensor *out
     configure(CLKernelLibrary::get().get_compile_context(), input, output, mean, var, beta, gamma, epsilon, act_info);
 }
 
-void CLBatchNormalizationLayerKernel::configure(CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const ICLTensor *mean, const ICLTensor *var, const ICLTensor *beta,
+void CLBatchNormalizationLayerKernel::configure(const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const ICLTensor *mean, const ICLTensor *var, const ICLTensor *beta,
                                                 const ICLTensor *gamma,
                                                 float epsilon, ActivationLayerInfo act_info)
 {
index fbdd04c4244678e96e9c3fc99d6e80bf83459947..f830161633350633d092283cc95bd86a3dc7dcf3 100644 (file)
@@ -88,7 +88,7 @@ void CLBatchToSpaceLayerKernel::configure(const ICLTensor *input, const ICLTenso
     configure(CLKernelLibrary::get().get_compile_context(), input, block_shape, output);
 }
 
-void CLBatchToSpaceLayerKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *block_shape, ICLTensor *output)
+void CLBatchToSpaceLayerKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *block_shape, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(input->info(), block_shape->info(), output->info()));
@@ -116,7 +116,7 @@ void CLBatchToSpaceLayerKernel::configure(const ICLTensor *input, const int32_t
     configure(CLKernelLibrary::get().get_compile_context(), input, block_shape_x, block_shape_y, output);
 }
 
-void CLBatchToSpaceLayerKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, const int32_t block_shape_x, const int32_t block_shape_y, ICLTensor *output)
+void CLBatchToSpaceLayerKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, const int32_t block_shape_x, const int32_t block_shape_y, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
 
index df23b903103b289b2e2b961ed461a2d0c8db6178..45622aa319cd6b9ba298741b86798f458d4b51e5 100644 (file)
@@ -42,7 +42,7 @@ void CLBitwiseAndKernel::configure(const ICLTensor *input1, const ICLTensor *inp
     configure(CLKernelLibrary::get().get_compile_context(), input1, input2, output);
 }
 
-void CLBitwiseAndKernel::configure(CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output)
+void CLBitwiseAndKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input1, 1, DataType::U8);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input2, 1, DataType::U8);
index 2abfa463016e4c04f7dbab67614a5db0d94ef7b1..0ad20a189765c3a10e79b0c20b9efde2253ed5ad 100644 (file)
@@ -36,7 +36,7 @@ void CLBitwiseNotKernel::configure(const ICLTensor *input, ICLTensor *output)
     configure(CLKernelLibrary::get().get_compile_context(), input, output);
 }
 
-void CLBitwiseNotKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output)
+void CLBitwiseNotKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U8);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(output, 1, DataType::U8);
index 8ab509ae7f7a341571e420a749591e15a8b85ba0..a911dd9e01d8f34ab9083c39b0adf05b2329f88d 100644 (file)
@@ -43,7 +43,7 @@ void CLBitwiseOrKernel::configure(const ICLTensor *input1, const ICLTensor *inpu
     configure(CLKernelLibrary::get().get_compile_context(), input1, input2, output);
 }
 
-void CLBitwiseOrKernel::configure(CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output)
+void CLBitwiseOrKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input1, 1, DataType::U8);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input2, 1, DataType::U8);
index c3ff7de82044c6f200ea215103bd292be5f1f9fc..084991a20284cf1ae5c30d0ac9b9f3ebcdf2183d 100644 (file)
@@ -43,7 +43,7 @@ void CLBitwiseXorKernel::configure(const ICLTensor *input1, const ICLTensor *inp
     configure(CLKernelLibrary::get().get_compile_context(), input1, input2, output);
 }
 
-void CLBitwiseXorKernel::configure(CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output)
+void CLBitwiseXorKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input1, 1, DataType::U8);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input2, 1, DataType::U8);
index 5ed5523632dcbf8879fc6d62f9ee9bd198bf1353..55c6f8453b84b066ad65108ece7469ed23e14dfe 100644 (file)
@@ -93,7 +93,7 @@ void CLBoundingBoxTransformKernel::configure(const ICLTensor *boxes, ICLTensor *
     configure(CLKernelLibrary::get().get_compile_context(), boxes, pred_boxes, deltas, info);
 }
 
-void CLBoundingBoxTransformKernel::configure(CLCompileContext &compile_context, const ICLTensor *boxes, ICLTensor *pred_boxes, const ICLTensor *deltas, const BoundingBoxTransformInfo &info)
+void CLBoundingBoxTransformKernel::configure(const CLCompileContext &compile_context, const ICLTensor *boxes, ICLTensor *pred_boxes, const ICLTensor *deltas, const BoundingBoxTransformInfo &info)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(boxes, pred_boxes, deltas);
     auto_init_if_empty(*pred_boxes->info(), deltas->info()->clone()->set_data_type(boxes->info()->data_type()).set_quantization_info(boxes->info()->quantization_info()));
index e0979a8aa348d26ecd0df69397bd3607fd345bc4..d665845ed706fc7910a8e532c74d8f5c6d15c26b 100644 (file)
@@ -45,7 +45,7 @@ void CLBox3x3Kernel::configure(const ICLTensor *input, ICLTensor *output, bool b
     configure(CLKernelLibrary::get().get_compile_context(), input, output, border_undefined);
 }
 
-void CLBox3x3Kernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, bool border_undefined)
+void CLBox3x3Kernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, bool border_undefined)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U8);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(output, 1, DataType::U8);
index c1aa611566fbe1f7fa6a77bab6ac66bfb022f430..95b03970b09c1a6509b20c15fc6b3a2e9c67954a 100644 (file)
@@ -43,7 +43,7 @@ void CLGradientKernel::configure(const ICLTensor *gx, const ICLTensor *gy, ICLTe
     configure(CLKernelLibrary::get().get_compile_context(), gx, gy, magnitude, phase, norm_type);
 }
 
-void CLGradientKernel::configure(CLCompileContext &compile_context, const ICLTensor *gx, const ICLTensor *gy, ICLTensor *magnitude, ICLTensor *phase, int32_t norm_type)
+void CLGradientKernel::configure(const CLCompileContext &compile_context, const ICLTensor *gx, const ICLTensor *gy, ICLTensor *magnitude, ICLTensor *phase, int32_t norm_type)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(gx, 1, DataType::S16, DataType::S32);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(gy, 1, DataType::S16, DataType::S32);
@@ -128,7 +128,7 @@ void CLEdgeNonMaxSuppressionKernel::configure(const ICLTensor *magnitude, const
     configure(CLKernelLibrary::get().get_compile_context(), magnitude, phase, output, lower_thr, border_undefined);
 }
 
-void CLEdgeNonMaxSuppressionKernel::configure(CLCompileContext &compile_context, const ICLTensor *magnitude, const ICLTensor *phase, ICLTensor *output, int32_t lower_thr, bool border_undefined)
+void CLEdgeNonMaxSuppressionKernel::configure(const CLCompileContext &compile_context, const ICLTensor *magnitude, const ICLTensor *phase, ICLTensor *output, int32_t lower_thr, bool border_undefined)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(magnitude, 1, DataType::U16, DataType::U32);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(phase, 1, DataType::U8);
@@ -208,7 +208,7 @@ void CLEdgeTraceKernel::configure(const ICLTensor *input, ICLTensor *output, int
     configure(CLKernelLibrary::get().get_compile_context(), input, output, upper_thr, lower_thr, visited, recorded, l1_stack, l1_stack_counter);
 }
 
-void CLEdgeTraceKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, int32_t upper_thr, int32_t lower_thr,
+void CLEdgeTraceKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, int32_t upper_thr, int32_t lower_thr,
                                   ICLTensor *visited, ICLTensor *recorded, ICLTensor *l1_stack, ICLTensor *l1_stack_counter)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U16, DataType::U32);
index 90face2ccc2839771d39b5e1d0308317b662e10b..017d98f860c6d230464029c34121ecefbbbeaa46 100644 (file)
@@ -56,7 +56,7 @@ void CLChannelCombineKernel::configure(const ICLTensor *plane0, const ICLTensor
     configure(CLKernelLibrary::get().get_compile_context(), plane0, plane1, plane2, plane3, output);
 }
 
-void CLChannelCombineKernel::configure(CLCompileContext &compile_context, const ICLTensor *plane0, const ICLTensor *plane1, const ICLTensor *plane2, const ICLTensor *plane3, ICLTensor *output)
+void CLChannelCombineKernel::configure(const CLCompileContext &compile_context, const ICLTensor *plane0, const ICLTensor *plane1, const ICLTensor *plane2, const ICLTensor *plane3, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(plane0, plane1, plane2, output);
     ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(plane0);
@@ -144,7 +144,7 @@ void CLChannelCombineKernel::configure(const ICLImage *plane0, const ICLImage *p
     configure(CLKernelLibrary::get().get_compile_context(), plane0, plane1, plane2, output);
 }
 
-void CLChannelCombineKernel::configure(CLCompileContext &compile_context, const ICLImage *plane0, const ICLImage *plane1, const ICLImage *plane2, ICLMultiImage *output)
+void CLChannelCombineKernel::configure(const CLCompileContext &compile_context, const ICLImage *plane0, const ICLImage *plane1, const ICLImage *plane2, ICLMultiImage *output)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(plane0, plane1, plane2, output);
     ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(plane0);
index 8df162c4eed9eb8a11f04b410d85be30325529f4..669d6c52ad619c3e22d9f7d2e6b1e6581606abcf 100644 (file)
@@ -52,7 +52,7 @@ void CLChannelExtractKernel::configure(const ICLTensor *input, Channel channel,
     configure(CLKernelLibrary::get().get_compile_context(), input, channel, output);
 }
 
-void CLChannelExtractKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, Channel channel, ICLTensor *output)
+void CLChannelExtractKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, Channel channel, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
     ARM_COMPUTE_ERROR_ON(input == output);
@@ -114,7 +114,7 @@ void CLChannelExtractKernel::configure(const ICLMultiImage *input, Channel chann
     configure(CLKernelLibrary::get().get_compile_context(), input, channel, output);
 }
 
-void CLChannelExtractKernel::configure(CLCompileContext &compile_context, const ICLMultiImage *input, Channel channel, ICLImage *output)
+void CLChannelExtractKernel::configure(const CLCompileContext &compile_context, const ICLMultiImage *input, Channel channel, ICLImage *output)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
     ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(output);
index 5e6bbb395bfafc9bebab73449c1dd385cae1966e..d4eafec4c43f36b9226baacf49aafb5e3dffed1a 100644 (file)
@@ -95,7 +95,7 @@ void CLChannelShuffleLayerKernel::configure(const ICLTensor *input, ICLTensor *o
     configure(CLKernelLibrary::get().get_compile_context(), input, output, num_groups);
 }
 
-void CLChannelShuffleLayerKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, unsigned int num_groups)
+void CLChannelShuffleLayerKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, unsigned int num_groups)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
 
index d96ec96126e95e32eab7ab576927dc97c3b57956..5adb9ef60dc64d6e2d07c9280ad116c113437b87 100644 (file)
@@ -94,7 +94,7 @@ void CLCol2ImKernel::configure(const ICLTensor *input, ICLTensor *output, const
     configure(CLKernelLibrary::get().get_compile_context(), input, output, convolved_dims, num_groups);
 }
 
-void CLCol2ImKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const Size2D &convolved_dims, unsigned int num_groups)
+void CLCol2ImKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const Size2D &convolved_dims, unsigned int num_groups)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
 
index 720d925427b96e0d910bd53a0974fa790c0c7acb..e9612f3ea6114aa6a0460028794f9e480a99c9c2 100644 (file)
@@ -51,7 +51,7 @@ void CLColorConvertKernel::configure(const ICLTensor *input, ICLTensor *output)
     configure(CLKernelLibrary::get().get_compile_context(), input, output);
 }
 
-void CLColorConvertKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output)
+void CLColorConvertKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON(input == nullptr);
     ARM_COMPUTE_ERROR_ON(output == nullptr);
@@ -147,7 +147,7 @@ void CLColorConvertKernel::configure(const ICLMultiImage *input, ICLImage *outpu
     configure(CLKernelLibrary::get().get_compile_context(), input, output);
 }
 
-void CLColorConvertKernel::configure(CLCompileContext &compile_context, const ICLMultiImage *input, ICLImage *output)
+void CLColorConvertKernel::configure(const CLCompileContext &compile_context, const ICLMultiImage *input, ICLImage *output)
 {
     ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(output);
     ARM_COMPUTE_ERROR_ON(output == nullptr);
@@ -237,7 +237,7 @@ void CLColorConvertKernel::configure(const ICLImage *input, ICLMultiImage *outpu
     configure(CLKernelLibrary::get().get_compile_context(), input, output);
 }
 
-void CLColorConvertKernel::configure(CLCompileContext &compile_context, const ICLImage *input, ICLMultiImage *output)
+void CLColorConvertKernel::configure(const CLCompileContext &compile_context, const ICLImage *input, ICLMultiImage *output)
 {
     ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(input);
     ARM_COMPUTE_ERROR_ON(output == nullptr);
@@ -349,7 +349,7 @@ void CLColorConvertKernel::configure(const ICLMultiImage *input, ICLMultiImage *
     configure(CLKernelLibrary::get().get_compile_context(), input, output);
 }
 
-void CLColorConvertKernel::configure(CLCompileContext &compile_context, const ICLMultiImage *input, ICLMultiImage *output)
+void CLColorConvertKernel::configure(const CLCompileContext &compile_context, const ICLMultiImage *input, ICLMultiImage *output)
 {
     unsigned int num_elems_processed_per_iteration = 0;
     switch(input->info()->format())
index 61aeebea5aa7fade783da5249f79f1379be0f417..216190752c5cc28853ce78f832fcf8153cbb1cd3 100644 (file)
@@ -111,7 +111,7 @@ void CLComparisonKernel::configure(const ICLTensor *input1, const ICLTensor *inp
     configure(CLKernelLibrary::get().get_compile_context(), input1, input2, output, operation);
 }
 
-void CLComparisonKernel::configure(CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output, ComparisonOperation operation)
+void CLComparisonKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output, ComparisonOperation operation)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input1, input2, output);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(*input1->info(), *input2->info(), *output->info(), operation));
index f57ff6c07e72d53c34b540b0e28f7cfba1faab99..9670fae36a6eec0e81f9b0efabd02778f246a942 100644 (file)
@@ -44,7 +44,7 @@ void CLConvertFullyConnectedWeightsKernel::configure(const ICLTensor *input, ICL
     configure(CLKernelLibrary::get().get_compile_context(), input, output, original_input_shape, data_layout);
 }
 
-void CLConvertFullyConnectedWeightsKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const TensorShape &original_input_shape,
+void CLConvertFullyConnectedWeightsKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const TensorShape &original_input_shape,
                                                      DataLayout data_layout)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
index 3cc6d24de2dc2e8c265ae1b081928a635ab5b3e0..2476180ba4c0d1a7d526c6a827fea312d862818a 100644 (file)
@@ -64,7 +64,7 @@ void CLConvolutionKernel<matrix_size>::configure(const ICLTensor *input, ICLTens
 }
 
 template <unsigned int matrix_size>
-void CLConvolutionKernel<matrix_size>::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, uint32_t scale, bool border_undefined)
+void CLConvolutionKernel<matrix_size>::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, uint32_t scale, bool border_undefined)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U8);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(output, 1, DataType::U8, DataType::S16);
@@ -140,7 +140,7 @@ void CLSeparableConvolutionHorKernel<matrix_size>::configure(const ICLTensor *in
 }
 
 template <unsigned int matrix_size>
-void CLSeparableConvolutionHorKernel<matrix_size>::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, bool border_undefined)
+void CLSeparableConvolutionHorKernel<matrix_size>::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, bool border_undefined)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U8);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(output, 1, DataType::U16, DataType::S16, DataType::S32);
@@ -216,7 +216,7 @@ void CLSeparableConvolutionVertKernel<matrix_size>::configure(const ICLTensor *i
 }
 
 template <unsigned int matrix_size>
-void CLSeparableConvolutionVertKernel<matrix_size>::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output,
+void CLSeparableConvolutionVertKernel<matrix_size>::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output,
                                                               const int16_t *conv, uint32_t scale, bool border_undefined, DataType data_type)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U16, DataType::S16, DataType::S32);
@@ -303,7 +303,7 @@ void CLConvolutionRectangleKernel::configure(const ICLTensor *input, ICLTensor *
     configure(CLKernelLibrary::get().get_compile_context(), input, output, conv, width, height, scale, border_undefined);
 }
 
-void CLConvolutionRectangleKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, uint32_t width, uint32_t height, uint32_t scale,
+void CLConvolutionRectangleKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const int16_t *conv, uint32_t width, uint32_t height, uint32_t scale,
                                              bool border_undefined)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U8);
index e59223e511f80a5df1abbfb31dfb6b503a74b62f..a864502a5fc9cc0733d97be4d6cce0de2ef7c475 100644 (file)
@@ -160,7 +160,7 @@ void CLCopyKernel::configure(const ICLTensor *input, ICLTensor *output, const Pa
     configure(CLKernelLibrary::get().get_compile_context(), input, output, padding, output_window);
 }
 
-void CLCopyKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const PaddingList &padding, Window *output_window)
+void CLCopyKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const PaddingList &padding, Window *output_window)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(input->info(), output->info(), padding, output_window));
index 2c17c995594d924306b472c475a81b68f1890b70..eb1ab7aebb8f14aba113ae4b860b3d956ce8d580 100644 (file)
@@ -52,8 +52,8 @@ void CLCropKernel::configure(const ICLTensor *input, ICLTensor *output, Coordina
     configure(CLKernelLibrary::get().get_compile_context(), input, output, start, end, batch_index, extrapolation_value, output_window);
 }
 
-void CLCropKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, Coordinates2D start, Coordinates2D end, uint32_t batch_index, float extrapolation_value,
-                             Window *output_window)
+void CLCropKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, Coordinates2D start, Coordinates2D end, uint32_t batch_index,
+                             float extrapolation_value, Window *output_window)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
     ARM_COMPUTE_ERROR_THROW_ON(validate(input->info(), output->info(), start, end, batch_index, extrapolation_value, output_window));
index f92f7da37f156b2e3ded891613ec575536b8449a..a368fae43bfee0d822add098d71309e2f4c265e4 100644 (file)
@@ -73,7 +73,7 @@ void CLDeconvolutionLayerUpsampleKernel::configure(const ICLTensor *input, ICLTe
     configure(CLKernelLibrary::get().get_compile_context(), input, output, info);
 }
 
-void CLDeconvolutionLayerUpsampleKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output,
+void CLDeconvolutionLayerUpsampleKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output,
                                                    const PadStrideInfo &info)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
index 68607e9fc6b308b9f097f18146d67c552de33b8c..7a4b7df5e28b34773d3ec3401f2abe35645acf6e 100644 (file)
@@ -119,7 +119,7 @@ void CLDeconvolutionReshapeOutputKernel::configure(const ICLTensor *input, const
     configure(CLKernelLibrary::get().get_compile_context(), input, bias, output, input_info, weights_info, deconv_info);
 }
 
-void CLDeconvolutionReshapeOutputKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *bias, ICLTensor *output, const ITensorInfo *input_info,
+void CLDeconvolutionReshapeOutputKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *bias, ICLTensor *output, const ITensorInfo *input_info,
                                                    const ITensorInfo   *weights_info,
                                                    const PadStrideInfo &deconv_info)
 {
index 241adb297bc072c54482fa3308cebea35755b1ac..65b603602c8da43126b7338e77df1150dfb8843c 100644 (file)
@@ -87,7 +87,7 @@ void CLDepthConcatenateLayerKernel::configure(const ICLTensor *input, unsigned i
     configure(CLKernelLibrary::get().get_compile_context(), input, depth_offset, output);
 }
 
-void CLDepthConcatenateLayerKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, unsigned int depth_offset, ICLTensor *output)
+void CLDepthConcatenateLayerKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, unsigned int depth_offset, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(input->info(), depth_offset, output->info()));
index 2e29dbf92a546bae4e6b2987eab63655cf9f4320..868d4efc51408ffe3e6f0871d8dc06ad028daecb 100644 (file)
@@ -77,7 +77,7 @@ void CLDepthConvertLayerKernel::configure(const ICLTensor *input, ICLTensor *out
     configure(CLKernelLibrary::get().get_compile_context(), input, output, policy, shift);
 }
 
-void CLDepthConvertLayerKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, ConvertPolicy policy, uint32_t shift)
+void CLDepthConvertLayerKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, ConvertPolicy policy, uint32_t shift)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
 
index cd61a91ec5c8ed8d507870ded65e4c2db06ac83a..ffd31552f1ff3766821ce8571af7a9aa605eb018 100644 (file)
@@ -70,7 +70,7 @@ void CLDepthToSpaceLayerKernel::configure(const ICLTensor *input, ICLTensor *out
     configure(CLKernelLibrary::get().get_compile_context(), input, output, block_shape);
 }
 
-void CLDepthToSpaceLayerKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, int32_t block_shape)
+void CLDepthToSpaceLayerKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, int32_t block_shape)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
 
index e293fa264f6551c5ec68f9e67d420303b6d4bb24..936cdd849cd994f825ccfc532de02bed433b92c9 100644 (file)
@@ -249,7 +249,7 @@ void CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(const ICLTensor *input,
     configure(CLKernelLibrary::get().get_compile_context(), input, weights, biases, output, conv_info, depth_multiplier, act_info, dilation, output_multipliers, output_shifts);
 }
 
-void CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output,
+void CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output,
                                                          const PadStrideInfo &conv_info, unsigned int depth_multiplier, ActivationLayerInfo act_info, const Size2D &dilation,
                                                          const ICLTensor *output_multipliers, const ICLTensor *output_shifts)
 {
index 71af63a97f5a4a9baf38807190bf4ba8d42507c2..fe72260e3bb1205431ecfeade8c6c430f5fdf3c9 100644 (file)
@@ -202,7 +202,7 @@ void CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(const ICLTensor *input,
     configure(CLKernelLibrary::get().get_compile_context(), input, weights, biases, output, conv_info, depth_multiplier, act_info, dilation, output_multipliers, output_shifts);
 }
 
-void CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output,
+void CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output,
                                                          const PadStrideInfo &conv_info, unsigned int depth_multiplier, ActivationLayerInfo act_info, const Size2D &dilation,
                                                          const ICLTensor *output_multipliers, const ICLTensor *output_shifts)
 {
index 45df9ed59a5733cd54ddfa8c6bb8c6f978d7e095..e6c9861c4ab8f509e438e5209d5a0594fbbf8a7c 100644 (file)
@@ -199,7 +199,7 @@ void CLDepthwiseConvolutionLayerNativeKernel::configure(const ICLTensor *input,
     configure(CLKernelLibrary::get().get_compile_context(), input, weights, biases, output, dwc_weights_info, dwc_info, conv_info, depth_multiplier, dilation, output_multipliers, output_shifts);
 }
 
-void CLDepthwiseConvolutionLayerNativeKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output,
+void CLDepthwiseConvolutionLayerNativeKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output,
                                                         const DWCWeightsKernelInfo &dwc_weights_info,
                                                         const DWCKernelInfo &dwc_info, const PadStrideInfo &conv_info, unsigned int depth_multiplier, const Size2D &dilation,
                                                         const ICLTensor *output_multipliers, const ICLTensor *output_shifts)
index 7e38e7710755ceafc7a7cdd49b00580e917e341f..d284203b76df9b7a30d01957fce530753bf3d974 100644 (file)
@@ -91,7 +91,7 @@ void CLDepthwiseConvolutionLayerReshapeWeightsKernel::configure(const ICLTensor
     configure(CLKernelLibrary::get().get_compile_context(), input, output, info);
 }
 
-void CLDepthwiseConvolutionLayerReshapeWeightsKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const DepthwiseConvolutionReshapeInfo &info)
+void CLDepthwiseConvolutionLayerReshapeWeightsKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const DepthwiseConvolutionReshapeInfo &info)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(input->info(), output->info(), info));
index ae7489f0a816c9feafd9a418a557c62f48a5f802..ec9b5cb8e2ae6e923e02e5a14b5e18f49cf18293 100644 (file)
@@ -80,7 +80,7 @@ void CLDequantizationLayerKernel::configure(const ICLTensor *input, ICLTensor *o
     configure(CLKernelLibrary::get().get_compile_context(), input, output);
 }
 
-void CLDequantizationLayerKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output)
+void CLDequantizationLayerKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(input->info(), output->info()));
index 670cde308ce13020507b8c1fa5460b054a5cb577..595ff9bdeec095005324d5fc3848bd907b677804 100644 (file)
@@ -53,7 +53,7 @@ void CLDerivativeKernel::configure(const ICLTensor *input, ICLTensor *output_x,
     configure(CLKernelLibrary::get().get_compile_context(), input, output_x, output_y, border_undefined);
 }
 
-void CLDerivativeKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output_x, ICLTensor *output_y, bool border_undefined)
+void CLDerivativeKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output_x, ICLTensor *output_y, bool border_undefined)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U8);
     ARM_COMPUTE_ERROR_ON((output_x == nullptr) && (output_y == nullptr));
index 0f6879dcc88107721cf330e645e8fe3824229845..7cba97f839fb3fe68910a0f92dcde986dd52f006 100644 (file)
@@ -41,7 +41,7 @@ void CLDilateKernel::configure(const ICLTensor *input, ICLTensor *output, bool b
     configure(CLKernelLibrary::get().get_compile_context(), input, output, border_undefined);
 }
 
-void CLDilateKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, bool border_undefined)
+void CLDilateKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, bool border_undefined)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U8);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(output, 1, DataType::U8);
index ff3d106f46a37620986010466fa7299d3c671b3b..2fcc82fbd39cedc7f7a1af475b5d01a8b1901078 100644 (file)
@@ -426,7 +426,7 @@ void CLDirectConvolutionLayerKernel::configure(const ICLTensor *input, const ICL
     configure(CLKernelLibrary::get().get_compile_context(), input, weights, biases, output, conv_info);
 }
 
-void CLDirectConvolutionLayerKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output,
+void CLDirectConvolutionLayerKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *output,
                                                const PadStrideInfo &conv_info)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, weights, output);
index 7356c5a5cd260f97e2e0161dcb09db429821d477..5c7457918470ccf9e3f68b1ebd46fc093fb8bd55 100644 (file)
@@ -55,7 +55,7 @@ void CLElementWiseUnaryLayerKernel::configure(const ICLTensor *input, ICLTensor
     configure(CLKernelLibrary::get().get_compile_context(), input, output, op);
 }
 
-void CLElementWiseUnaryLayerKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const ElementWiseUnary &op)
+void CLElementWiseUnaryLayerKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const ElementWiseUnary &op)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(*input->info(), *output->info()));
index ee4ef40b87b55288764a856914c3bd847f818e0b..00a97d50e9a00d605ceab8932d0b9cd91fce5061 100644 (file)
@@ -240,7 +240,7 @@ void CLElementwiseOperationKernel::configure_common(const ICLTensor *input1, con
     configure_common(CLKernelLibrary::get().get_compile_context(), input1, input2, output);
 }
 
-void CLElementwiseOperationKernel::configure_common(CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output)
+void CLElementwiseOperationKernel::configure_common(const CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input1, input2, output);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(*input1->info(), *input2->info(), *output->info()));
@@ -337,7 +337,7 @@ void CLSaturatedArithmeticOperationKernel::configure(ArithmeticOperation op, con
     configure(CLKernelLibrary::get().get_compile_context(), op, input1, input2, output, policy, act_info);
 }
 
-void CLSaturatedArithmeticOperationKernel::configure(CLCompileContext &compile_context, ArithmeticOperation op, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output,
+void CLSaturatedArithmeticOperationKernel::configure(const CLCompileContext &compile_context, ArithmeticOperation op, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output,
                                                      const ConvertPolicy       &policy,
                                                      const ActivationLayerInfo &act_info)
 {
@@ -396,7 +396,7 @@ void CLArithmeticOperationKernel::configure(ArithmeticOperation op, const ICLTen
     configure(CLKernelLibrary::get().get_compile_context(), op, input1, input2, output, act_info);
 }
 
-void CLArithmeticOperationKernel::configure(CLCompileContext &compile_context, ArithmeticOperation op, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output,
+void CLArithmeticOperationKernel::configure(const CLCompileContext &compile_context, ArithmeticOperation op, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output,
                                             const ActivationLayerInfo &act_info)
 {
     _op       = op;
index e959d1c320d40ae570e24872446a3fb47b1e00f6..6cb5ffc8cc33a54cedf0650d435493ebb4670144 100644 (file)
@@ -41,7 +41,7 @@ void CLErodeKernel::configure(const ICLTensor *input, ICLTensor *output, bool bo
     configure(CLKernelLibrary::get().get_compile_context(), input, output, border_undefined);
 }
 
-void CLErodeKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, bool border_undefined)
+void CLErodeKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, bool border_undefined)
 {
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U8);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(output, 1, DataType::U8);
index 5542ad72f4b684a5fd4dd3815482f6fec1ac5cbc..03e6ee7dfbe31af74d372c0e5c06b7b869f25c2c 100644 (file)
@@ -78,7 +78,7 @@ void CLFFTDigitReverseKernel::configure(const ICLTensor *input, ICLTensor *outpu
     configure(CLKernelLibrary::get().get_compile_context(), input, output, idx, config);
 }
 
-void CLFFTDigitReverseKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const ICLTensor *idx, const FFTDigitReverseKernelInfo &config)
+void CLFFTDigitReverseKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const ICLTensor *idx, const FFTDigitReverseKernelInfo &config)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output, idx);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(input->info(), output->info(), idx->info(), config));
index 6e7e1eff06cc493793d827668b48bcbda02c7833..63c093958cb63315134fd33c63a2e8fad9643fe7 100644 (file)
@@ -88,7 +88,7 @@ void CLFFTRadixStageKernel::configure(ICLTensor *input, ICLTensor *output, const
     configure(CLKernelLibrary::get().get_compile_context(), input, output, config);
 }
 
-void CLFFTRadixStageKernel::configure(CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const FFTRadixStageKernelInfo &config)
+void CLFFTRadixStageKernel::configure(const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const FFTRadixStageKernelInfo &config)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(input->info(), (output != nullptr) ? output->info() : nullptr, config));
index 32e652ad1d1d6fd574ca0dd753c4c7bf5d607817..4738a12b499f8d9fbd1ad026c0982a3eb5fa2bcd 100644 (file)
@@ -81,7 +81,7 @@ void CLFFTScaleKernel::configure(ICLTensor *input, ICLTensor *output, const FFTS
     configure(CLKernelLibrary::get().get_compile_context(), input, output, config);
 }
 
-void CLFFTScaleKernel::configure(CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const FFTScaleKernelInfo &config)
+void CLFFTScaleKernel::configure(const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const FFTScaleKernelInfo &config)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(input->info(), (output != nullptr) ? output->info() : nullptr));
index 2bd4d89bbce4729760e1de5178dddd5ee3c9e9b7..4c2086c1c6fc5714dd81dd5875224aaa99da257f 100644 (file)
@@ -53,7 +53,7 @@ void CLFastCornersKernel::configure(const ICLImage *input, ICLImage *output, flo
     configure(CLKernelLibrary::get().get_compile_context(), input, output, threshold, non_max_suppression, border_mode);
 }
 
-void CLFastCornersKernel::configure(CLCompileContext &compile_context, const ICLImage *input, ICLImage *output, float threshold, bool non_max_suppression, BorderMode border_mode)
+void CLFastCornersKernel::configure(const CLCompileContext &compile_context, const ICLImage *input, ICLImage *output, float threshold, bool non_max_suppression, BorderMode border_mode)
 {
     ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(input);
     ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(output);
@@ -141,7 +141,7 @@ void CLCopyToArrayKernel::configure(const ICLImage *input, bool update_number, I
     configure(CLKernelLibrary::get().get_compile_context(), input, update_number, corners, num_buffers);
 }
 
-void CLCopyToArrayKernel::configure(CLCompileContext &compile_context, const ICLImage *input, bool update_number, ICLKeyPointArray *corners, cl::Buffer *num_buffers)
+void CLCopyToArrayKernel::configure(const CLCompileContext &compile_context, const ICLImage *input, bool update_number, ICLKeyPointArray *corners, cl::Buffer *num_buffers)
 {
     ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(input);
     ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::U8);
index c69a8c9f927c2c1b2c358cf01119c57208fe681b..b2f06b34bbce4ba51d7027c333c5a0642ba35dc3 100644 (file)
@@ -65,7 +65,7 @@ void CLFillBorderKernel::configure(ICLTensor *tensor, BorderSize border_size, Bo
     configure(CLKernelLibrary::get().get_compile_context(), tensor, border_size, border_mode, constant_border_value);
 }
 
-void CLFillBorderKernel::configure(CLCompileContext &compile_context, ICLTensor *tensor, BorderSize border_size, BorderMode border_mode, const PixelValue &constant_border_value)
+void CLFillBorderKernel::configure(const CLCompileContext &compile_context, ICLTensor *tensor, BorderSize border_size, BorderMode border_mode, const PixelValue &constant_border_value)
 {
     ARM_COMPUTE_ERROR_ON(tensor == nullptr);
     ARM_COMPUTE_ERROR_ON(tensor->info()->num_channels() != 1);
index c2dc933f5acffb034a72287527fec6441334c9c9..d7b4a6eade95f6243301d9f66eb2c224013b899d 100644 (file)
@@ -85,7 +85,7 @@ void CLFlattenLayerKernel::configure(const ICLTensor *input, ICLTensor *output)
     configure(CLKernelLibrary::get().get_compile_context(), input, output);
 }
 
-void CLFlattenLayerKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output)
+void CLFlattenLayerKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
     ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(input->info(), output->info()));
index abfed8d18ee9e3481d39b4e1df560a6d4f005573..9b2133d7969a6bc71856f949f9f1bc675b67d69a 100644 (file)
@@ -77,7 +77,7 @@ CLFloorKernel::CLFloorKernel()
 {
 }
 
-void CLFloorKernel::configure(CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output)
+void CLFloorKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output)
 {
     ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
 
index 6f4ba0ed06dedeb15a4eca4445833cf5cdc45a17..fd03e8379c78141e55f41284fcc9858b1f744c74 100644 (file)
@@ -112,7 +112,7 @@ void CLFuseBatchNormalizationKernel::configure(const ICLTensor *input_weights, c
     configure(CLKernelLibrary::get().get_compile_context(), input_weights, bn_mean, bn_var, fused_weights, fused_bias, input_bias, bn_beta, bn_gamma, epsilon, fbn_type);
 }
 
-void CLFuseBatchNormalizationKernel::configure(CLCompileContext &compile_context, const ICLTensor *input_weights, const ICLTensor *bn_mean, const ICLTensor *bn_var,
+void CLFuseBatchNormalizationKernel::configure(const CLCompileContext &compile_context, const ICLTensor *input_weights, const ICLTensor *bn_mean, const ICLTensor *bn_var,
                                                ICLTensor *fused_weights, ICLTensor *fused_bias,
                                                const ICLTensor *input_bias, const ICLTensor *bn_beta, const ICLTensor *bn_gamma,
                                                float epsilon, FuseBatchNormalizationType fbn_type)