diff options
Diffstat (limited to 'arm_compute')
-rw-r--r-- | arm_compute/core/GLES_COMPUTE/kernels/GCPoolingLayerKernel.h | 12 | ||||
-rw-r--r-- | arm_compute/runtime/GLES_COMPUTE/functions/GCPoolingLayer.h | 13 |
2 files changed, 23 insertions, 2 deletions
diff --git a/arm_compute/core/GLES_COMPUTE/kernels/GCPoolingLayerKernel.h b/arm_compute/core/GLES_COMPUTE/kernels/GCPoolingLayerKernel.h index d4921c2092..a0610d0b66 100644 --- a/arm_compute/core/GLES_COMPUTE/kernels/GCPoolingLayerKernel.h +++ b/arm_compute/core/GLES_COMPUTE/kernels/GCPoolingLayerKernel.h @@ -26,6 +26,8 @@ #include "arm_compute/core/GLES_COMPUTE/IGCKernel.h" +#include "arm_compute/core/Error.h" + namespace arm_compute { class IGCTensor; @@ -55,6 +57,16 @@ public: */ void configure(const IGCTensor *input, IGCTensor *output, const PoolingLayerInfo &pool_info); + /** 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. + * + * @return a status + */ + static Status validate(const ITensorInfo *input, const ITensorInfo *output, const PoolingLayerInfo &pool_info); + // Inherited methods overridden: void run(const Window &window) override; BorderSize border_size() const override; diff --git a/arm_compute/runtime/GLES_COMPUTE/functions/GCPoolingLayer.h b/arm_compute/runtime/GLES_COMPUTE/functions/GCPoolingLayer.h index cce44d0c3c..5733542a72 100644 --- a/arm_compute/runtime/GLES_COMPUTE/functions/GCPoolingLayer.h +++ b/arm_compute/runtime/GLES_COMPUTE/functions/GCPoolingLayer.h @@ -24,10 +24,10 @@ #ifndef __ARM_COMPUTE_GCPOOLINGLAYER_H__ #define __ARM_COMPUTE_GCPOOLINGLAYER_H__ -#include "arm_compute/core/Types.h" #include "arm_compute/runtime/GLES_COMPUTE/IGCSimpleFunction.h" -#include <memory> +#include "arm_compute/core/Error.h" +#include "arm_compute/core/Types.h" namespace arm_compute { @@ -48,6 +48,15 @@ public: * @param[in] pool_info Contains pooling operation information described in @ref PoolingLayerInfo. */ void configure(IGCTensor *input, IGCTensor *output, const PoolingLayerInfo &pool_info); + /** Static function to check if given info will lead to a valid configuration of @ref GCPoolingLayer + * + * @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. + * + * @return a status + */ + static Status validate(const ITensorInfo *input, const ITensorInfo *output, const PoolingLayerInfo &pool_info); }; } // namespace arm_compute #endif /* __ARM_COMPUTE_GCPOOLINGLAYER_H__ */ |