diff options
author | John Richardson <john.richardson@arm.com> | 2018-04-20 13:11:36 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:51:50 +0000 |
commit | 62385bce6baacfa194cff9e6be6d8eaa73bc3fab (patch) | |
tree | 81d72e49e487ae972423cd57d181ebc53efe487b /arm_compute/runtime/CL/functions/CLReductionOperation.h | |
parent | 657bdb358c95ccd6bb07594a01625a7d7bacd32f (diff) | |
download | ComputeLibrary-62385bce6baacfa194cff9e6be6d8eaa73bc3fab.tar.gz |
COMPMID-948: Add validation to CLL2NormalizeLayer
Change-Id: I452a718a60b81da51cd3e98641fd99c86c4debab
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/129451
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Diffstat (limited to 'arm_compute/runtime/CL/functions/CLReductionOperation.h')
-rw-r--r-- | arm_compute/runtime/CL/functions/CLReductionOperation.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/arm_compute/runtime/CL/functions/CLReductionOperation.h b/arm_compute/runtime/CL/functions/CLReductionOperation.h index abec9b8dc5..b8108b507b 100644 --- a/arm_compute/runtime/CL/functions/CLReductionOperation.h +++ b/arm_compute/runtime/CL/functions/CLReductionOperation.h @@ -53,13 +53,24 @@ public: /** Set the input and output tensors. * - * @param[in] input Source tensor. Data types supported: QS8, QS16, F16, F32. - * @param[out] output Destination tensor. Data types supported: Same as @p input. + * @param[in] input Source tensor. Data types supported: F32. Data layouts supported: NCHW. + * @param[out] output Destination tensor. Data types and data layouts supported: Same as @p input. * @param[in] axis Axis along which to reduce. Supported reduction axis : 0 * @param[in] op Reduction operation to perform. */ void configure(ICLTensor *input, ICLTensor *output, unsigned int axis, ReductionOperation op); + /** Static function to check if given info will lead to a valid configuration of @ref CLReductionOperation. + * + * @param[in] input Source tensor info. Data types supported: F32. Data layouts supported: NCHW. + * @param[in] output Destination tensor info. Data types and data layouts supported: Same as @p input. + * @param[in] axis Axis along which to reduce. Supported reduction axis : 0 + * @param[in] op Reduction operation to perform. + * + * @return a status + */ + static Status validate(const ITensorInfo *input, const ITensorInfo *output, unsigned int axis, ReductionOperation op); + // Inherited methods overridden: void run() override; @@ -71,4 +82,4 @@ private: unsigned int _num_of_stages; }; } -#endif /*__ARM_COMPUTE_CLL2NORMALIZE_H__ */ +#endif /*__ARM_COMPUTE_CLREDUCTIONOPERATION_H__ */ |