From 2eb5d16b839cbc28c6cb7f0de7a0bf15290b425a Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 2 Jul 2021 09:01:49 +0100 Subject: Align kernel/operator header layout - Redirect validate documentation to configure - Align header names - Align class layout Signed-off-by: Georgios Pinitas Change-Id: Ia40f67383826a66e9f9a33745d66805551e31a3a Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5897 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio --- src/runtime/cpu/operators/CpuScale.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/runtime/cpu/operators/CpuScale.h') diff --git a/src/runtime/cpu/operators/CpuScale.h b/src/runtime/cpu/operators/CpuScale.h index 90248a8d59..b83e04bc42 100644 --- a/src/runtime/cpu/operators/CpuScale.h +++ b/src/runtime/cpu/operators/CpuScale.h @@ -40,8 +40,6 @@ namespace cpu class CpuScale : public ICpuOperator { public: - /** Default Constructor */ - CpuScale(); /** Initialize the function's source, destination, interpolation type and border_mode. * * @param[in, out] src Source tensor info. Data type supported: QASYMM8/QASYMM8_SIGNED/U8/S16/F16/F32. (Written to only for @p border_mode != UNDEFINED) @@ -49,11 +47,9 @@ public: * @param[in] info @ref ScaleKernelInfo to be used for configuration */ void configure(ITensorInfo *src, ITensorInfo *dst, const ScaleKernelInfo &info); - /** Static function to check if given info will lead to a valid configuration of @ref NEScale + /** Static function to check if given info will lead to a valid configuration * - * @param[in] src Source tensor info. Data type supported: QASYMM8/QASYMM8_SIGNED/U8/S16/F16/F32. (Written to only for @p border_mode != UNDEFINED) - * @param[in] dst Destination tensor info. Data type supported: Same as @p src. 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 @ref ScaleKernelInfo to be used for validation + * Similar to @ref CpuScale::configure() * * @return a status */ @@ -64,10 +60,10 @@ public: void run(ITensorPack &tensors) override; private: - ScaleKernelInfo _scale_info; - DataLayout _data_layout; - bool _is_prepared; + ScaleKernelInfo _scale_info{ InterpolationPolicy::NEAREST_NEIGHBOR, BorderMode::UNDEFINED }; + DataLayout _data_layout{ DataLayout::UNKNOWN }; + bool _is_prepared{ false }; }; } // namespace cpu } // namespace arm_compute -#endif /*ARM_COMPUTE_CPU_SCALE_H */ +#endif /* ARM_COMPUTE_CPU_SCALE_H */ -- cgit v1.2.1