From afd38f0c617d6f89b2b4532c6c44f116617e2b6f Mon Sep 17 00:00:00 2001 From: Felix Thomasmathibalan Date: Wed, 27 Sep 2023 17:46:17 +0100 Subject: Apply clang-format on repository Code is formatted as per a revised clang format configuration file(not part of this delivery). Version 14.0.6 is used. Exclusion List: - files with .cl extension - files that are not strictly C/C++ (e.g. Android.bp, Sconscript ...) And the following directories - compute_kernel_writer/validation/ - tests/ - include/ - src/core/NEON/kernels/convolution/ - src/core/NEON/kernels/arm_gemm/ - src/core/NEON/kernels/arm_conv/ - data/ There will be a follow up for formatting of .cl files and the files under tests/ and compute_kernel_writer/validation/. Signed-off-by: Felix Thomasmathibalan Change-Id: Ib7eb1fcf4e7537b9feaefcfc15098a804a3fde0a Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10391 Benchmark: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Gunes Bayir --- arm_compute/dynamic_fusion/sketch/attributes/CastAttributes.h | 4 ++-- .../dynamic_fusion/sketch/attributes/Conv2dAttributes.h | 7 ++++--- .../sketch/attributes/DepthwiseConv2dAttributes.h | 11 ++++++----- .../dynamic_fusion/sketch/attributes/Pool2dAttributes.h | 4 ++-- .../dynamic_fusion/sketch/attributes/ResizeAttributes.h | 7 ++++--- .../dynamic_fusion/sketch/attributes/SoftmaxAttributes.h | 2 +- 6 files changed, 19 insertions(+), 16 deletions(-) (limited to 'arm_compute/dynamic_fusion/sketch/attributes') diff --git a/arm_compute/dynamic_fusion/sketch/attributes/CastAttributes.h b/arm_compute/dynamic_fusion/sketch/attributes/CastAttributes.h index 59efc8bd5d..ba2f658c7c 100644 --- a/arm_compute/dynamic_fusion/sketch/attributes/CastAttributes.h +++ b/arm_compute/dynamic_fusion/sketch/attributes/CastAttributes.h @@ -49,8 +49,8 @@ public: ConvertPolicy convert_policy() const; private: - DataType _data_type{}; /**< Data Type to be casted to */ - ConvertPolicy _convert_policy{ ConvertPolicy::SATURATE }; /**< Convert Policy */ + DataType _data_type{}; /**< Data Type to be casted to */ + ConvertPolicy _convert_policy{ConvertPolicy::SATURATE}; /**< Convert Policy */ }; } // namespace dynamic_fusion } // namespace experimental diff --git a/arm_compute/dynamic_fusion/sketch/attributes/Conv2dAttributes.h b/arm_compute/dynamic_fusion/sketch/attributes/Conv2dAttributes.h index 58102d8d88..a98ef0363e 100644 --- a/arm_compute/dynamic_fusion/sketch/attributes/Conv2dAttributes.h +++ b/arm_compute/dynamic_fusion/sketch/attributes/Conv2dAttributes.h @@ -26,6 +26,7 @@ #include "arm_compute/core/Size2D.h" #include "arm_compute/core/Types.h" + #include namespace arm_compute @@ -55,9 +56,9 @@ public: Size2D dilation() const; private: - Padding2D _pad{}; /**< Padding */ - Size2D _stride{ 1U, 1U }; /**< Stride */ - Size2D _dilation{ 1U, 1U }; /**< Dilation */ + Padding2D _pad{}; /**< Padding */ + Size2D _stride{1U, 1U}; /**< Stride */ + Size2D _dilation{1U, 1U}; /**< Dilation */ }; } // namespace dynamic_fusion } // namespace experimental diff --git a/arm_compute/dynamic_fusion/sketch/attributes/DepthwiseConv2dAttributes.h b/arm_compute/dynamic_fusion/sketch/attributes/DepthwiseConv2dAttributes.h index 6d05e9e4d6..c46b25cb5d 100644 --- a/arm_compute/dynamic_fusion/sketch/attributes/DepthwiseConv2dAttributes.h +++ b/arm_compute/dynamic_fusion/sketch/attributes/DepthwiseConv2dAttributes.h @@ -26,6 +26,7 @@ #include "arm_compute/core/Size2D.h" #include "arm_compute/core/Types.h" + #include namespace arm_compute @@ -63,11 +64,11 @@ public: DimensionRoundingType dimension_rounding_type() const; private: - Padding2D _pad{}; /**< Padding */ - Size2D _stride{ 1U, 1U }; /**< Stride */ - Size2D _dilation{ 1U, 1U }; /**< Dilation */ - uint32_t _depth_multiplier{ 1U }; /**< Depth multiplier */ - DimensionRoundingType _dimension_rounding_type{ DimensionRoundingType::FLOOR }; /**< Dimension rounding type */ + Padding2D _pad{}; /**< Padding */ + Size2D _stride{1U, 1U}; /**< Stride */ + Size2D _dilation{1U, 1U}; /**< Dilation */ + uint32_t _depth_multiplier{1U}; /**< Depth multiplier */ + DimensionRoundingType _dimension_rounding_type{DimensionRoundingType::FLOOR}; /**< Dimension rounding type */ }; } // namespace dynamic_fusion } // namespace experimental diff --git a/arm_compute/dynamic_fusion/sketch/attributes/Pool2dAttributes.h b/arm_compute/dynamic_fusion/sketch/attributes/Pool2dAttributes.h index be30781d86..19d8b96dcf 100644 --- a/arm_compute/dynamic_fusion/sketch/attributes/Pool2dAttributes.h +++ b/arm_compute/dynamic_fusion/sketch/attributes/Pool2dAttributes.h @@ -72,8 +72,8 @@ private: PoolingType _pool_type{}; Padding2D _pad{}; Size2D _pool_size{}; - Size2D _stride{ 1U, 1U }; - bool _exclude_padding{ true }; + Size2D _stride{1U, 1U}; + bool _exclude_padding{true}; }; } // namespace dynamic_fusion diff --git a/arm_compute/dynamic_fusion/sketch/attributes/ResizeAttributes.h b/arm_compute/dynamic_fusion/sketch/attributes/ResizeAttributes.h index 8992693cd1..7410cc7e70 100644 --- a/arm_compute/dynamic_fusion/sketch/attributes/ResizeAttributes.h +++ b/arm_compute/dynamic_fusion/sketch/attributes/ResizeAttributes.h @@ -27,6 +27,7 @@ #include "arm_compute/core/PixelValue.h" #include "arm_compute/core/Types.h" + #include namespace arm_compute @@ -75,9 +76,9 @@ public: private: int32_t _output_width{}; int32_t _output_height{}; - InterpolationPolicy _interpolation_policy{ InterpolationPolicy::BILINEAR }; - SamplingPolicy _sampling_policy{ SamplingPolicy::CENTER }; - bool _align_corners{ false }; + InterpolationPolicy _interpolation_policy{InterpolationPolicy::BILINEAR}; + SamplingPolicy _sampling_policy{SamplingPolicy::CENTER}; + bool _align_corners{false}; }; } // namespace dynamic_fusion diff --git a/arm_compute/dynamic_fusion/sketch/attributes/SoftmaxAttributes.h b/arm_compute/dynamic_fusion/sketch/attributes/SoftmaxAttributes.h index fc50aa0f68..61654bfa27 100644 --- a/arm_compute/dynamic_fusion/sketch/attributes/SoftmaxAttributes.h +++ b/arm_compute/dynamic_fusion/sketch/attributes/SoftmaxAttributes.h @@ -51,7 +51,7 @@ public: int axis() const; private: - float _beta{ 1.f }; /**< Scaling factor for the exponent */ + float _beta{1.f}; /**< Scaling factor for the exponent */ bool _is_log_softmax{}; /**< True if operation is log-softmax */ int _axis{}; /**< Axis/Dimension to perform the operation */ }; -- cgit v1.2.1