aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/GLES_COMPUTE/kernels/GCPoolingLayerKernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/core/GLES_COMPUTE/kernels/GCPoolingLayerKernel.h')
-rw-r--r--arm_compute/core/GLES_COMPUTE/kernels/GCPoolingLayerKernel.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/arm_compute/core/GLES_COMPUTE/kernels/GCPoolingLayerKernel.h b/arm_compute/core/GLES_COMPUTE/kernels/GCPoolingLayerKernel.h
index 85c051c326..7a2fb84f34 100644
--- a/arm_compute/core/GLES_COMPUTE/kernels/GCPoolingLayerKernel.h
+++ b/arm_compute/core/GLES_COMPUTE/kernels/GCPoolingLayerKernel.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -54,18 +54,20 @@ public:
* @param[in] input Source tensor. Data types supported: F16/F32.
* @param[out] output Destination tensor. Data types supported: Same as @p input.
* @param[in] pool_info Contains pooling operation information described in @ref PoolingLayerInfo.
+ * @param[out] indices (optional) The indices of the maximal values. Data type supported: U32.
*/
- void configure(const IGCTensor *input, IGCTensor *output, const PoolingLayerInfo &pool_info);
+ void configure(const IGCTensor *input, IGCTensor *output, const PoolingLayerInfo &pool_info, IGCTensor *indices = nullptr);
/** Static function to check if given info will lead to a valid configuration of @ref GCPoolingLayerKernel
*
* @param[in] input Source tensor info. Data types supported: F16/F32.
* @param[in] output Destination tensor info. Data types supported: Same as @p input.
* @param[in] pool_info Contains pooling operation information described in @ref PoolingLayerInfo.
+ * @param[in] indices (optional) The indices of the maximal values. Data type supported: U32.
*
* @return a status
*/
- static Status validate(const ITensorInfo *input, const ITensorInfo *output, const PoolingLayerInfo &pool_info);
+ static Status validate(const ITensorInfo *input, const ITensorInfo *output, const PoolingLayerInfo &pool_info, const ITensorInfo *indices = nullptr);
// Inherited methods overridden:
void run(const Window &window) override;
@@ -74,6 +76,7 @@ public:
private:
const IGCTensor *_input;
IGCTensor *_output;
+ IGCTensor *_indices;
PoolingLayerInfo _pool_info;
BorderSize _border_size;
unsigned int _num_elems_processed_per_iteration;