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 --- .../dynamic_fusion/runtime/gpu/cl/ClWorkloadRuntime.h | 1 + arm_compute/dynamic_fusion/sketch/MemoryDescriptor.h | 16 ++++++++-------- .../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 +- .../dynamic_fusion/sketch/gpu/GpuWorkloadContext.h | 2 +- arm_compute/dynamic_fusion/sketch/gpu/operators/GpuAdd.h | 12 +++--------- .../dynamic_fusion/sketch/gpu/operators/GpuCast.h | 13 ++++--------- .../dynamic_fusion/sketch/gpu/operators/GpuClamp.h | 13 ++++--------- .../dynamic_fusion/sketch/gpu/operators/GpuConv2d.h | 7 ++----- .../sketch/gpu/operators/GpuDepthwiseConv2d.h | 7 ++----- arm_compute/dynamic_fusion/sketch/gpu/operators/GpuMul.h | 12 +++--------- .../dynamic_fusion/sketch/gpu/operators/GpuOutput.h | 12 +++--------- .../dynamic_fusion/sketch/gpu/operators/GpuPool2d.h | 10 ++++------ .../dynamic_fusion/sketch/gpu/operators/GpuReshape.h | 13 ++++--------- .../dynamic_fusion/sketch/gpu/operators/GpuResize.h | 13 ++++--------- .../dynamic_fusion/sketch/gpu/operators/GpuSigmoid.h | 9 +++------ .../dynamic_fusion/sketch/gpu/operators/GpuSoftmax.h | 5 +---- arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSub.h | 12 +++--------- .../dynamic_fusion/sketch/gpu/operators/GpuTanh.h | 9 +++------ 23 files changed, 72 insertions(+), 129 deletions(-) (limited to 'arm_compute/dynamic_fusion') diff --git a/arm_compute/dynamic_fusion/runtime/gpu/cl/ClWorkloadRuntime.h b/arm_compute/dynamic_fusion/runtime/gpu/cl/ClWorkloadRuntime.h index b5af589cd2..3deaff74fc 100644 --- a/arm_compute/dynamic_fusion/runtime/gpu/cl/ClWorkloadRuntime.h +++ b/arm_compute/dynamic_fusion/runtime/gpu/cl/ClWorkloadRuntime.h @@ -26,6 +26,7 @@ #include "arm_compute/core/TensorInfo.h" #include "arm_compute/dynamic_fusion/sketch/MemoryDescriptor.h" + #include #include diff --git a/arm_compute/dynamic_fusion/sketch/MemoryDescriptor.h b/arm_compute/dynamic_fusion/sketch/MemoryDescriptor.h index 3daedd4efb..e2a34e4424 100644 --- a/arm_compute/dynamic_fusion/sketch/MemoryDescriptor.h +++ b/arm_compute/dynamic_fusion/sketch/MemoryDescriptor.h @@ -53,10 +53,12 @@ namespace dynamic_fusion enum class MemoryType { /** Both User and Auxiliary types are of Alloc type. Since they require memory allocation */ - User = 0, /**< Memory coming directly from users, e.g. for argument tensors */ - Auxiliary = 1, /**< Additional memory required by the workload tensor, e.g. for tensors holding temporary results between kernels */ + User = 0, /**< Memory coming directly from users, e.g. for argument tensors */ + Auxiliary = + 1, /**< Additional memory required by the workload tensor, e.g. for tensors holding temporary results between kernels */ /** Virtual type is of No-Alloc type. Since it doesn't require memory allocation */ - Virtual = 2, /**< Temporary tile which is not allocated as a whole tensor in the memory. It is mainly used at sketch time to link operators; there should be no Virtual tensors at runtime */ + Virtual = + 2, /**< Temporary tile which is not allocated as a whole tensor in the memory. It is mainly used at sketch time to link operators; there should be no Virtual tensors at runtime */ }; /** Memory information for tensors with @ref MemoryType::Auxiliary. @@ -66,9 +68,7 @@ struct AuxMemoryInfo { AuxMemoryInfo() = default; - AuxMemoryInfo(size_t size, size_t alignment = 0) noexcept - : size(size), - alignment(alignment) + AuxMemoryInfo(size_t size, size_t alignment = 0) noexcept : size(size), alignment(alignment) { } @@ -76,8 +76,8 @@ struct AuxMemoryInfo { return info0.size == info1.size && info0.alignment == info1.alignment; } - size_t size{ 0 }; /**< Total memory size in bytes */ - size_t alignment{ 0 }; /**< Memory alignment in bytes */ + size_t size{0}; /**< Total memory size in bytes */ + size_t alignment{0}; /**< Memory alignment in bytes */ }; /** Descriptor of a workload tensor memory */ 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 */ }; diff --git a/arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadContext.h b/arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadContext.h index 0b60899734..38b350c7eb 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadContext.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadContext.h @@ -85,7 +85,7 @@ public: * @return TensorInfo Newly created tensor info */ template - TensorInfo create_tensor_info(TArgs &&... args) + TensorInfo create_tensor_info(TArgs &&...args) { auto tensor_info = TensorInfo(std::forward(args)...); register_user_tensor(tensor_info); diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuAdd.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuAdd.h index 33eded4dff..5b6c1b90ab 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuAdd.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuAdd.h @@ -65,9 +65,7 @@ public: * * @return Pointer for the destination tensor info */ - static ITensorInfo *create_op(GpuWorkloadSketch &sketch, - ITensorInfo *lhs, - ITensorInfo *rhs); + static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *lhs, ITensorInfo *rhs); /** Check if the operator configuration is supported, irrespective of fusion * * @param[in] context Workload context within which the operator is running @@ -76,18 +74,14 @@ public: * * @return Status */ - static Status is_supported_op(const GpuWorkloadContext &context, - const ITensorInfo *lhs, - const ITensorInfo *rhs); + static Status is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *lhs, const ITensorInfo *rhs); /** Validate the operator and check if the its configuration is supported and if it can be fused into the workload sketch. * * Parameters are similar to @ref GpuAdd::create_op() * * @return Status */ - static Status validate_op(const GpuWorkloadSketch &sketch, - const ITensorInfo *rhs, - const ITensorInfo *lhs); + static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *rhs, const ITensorInfo *lhs); }; } // namespace dynamic_fusion } // namespace experimental diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuCast.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuCast.h index 83b004b8b8..1593cec804 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuCast.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuCast.h @@ -68,9 +68,7 @@ public: * * @return Pointer for the destination tensor info */ - static ITensorInfo *create_op(GpuWorkloadSketch &sketch, - ITensorInfo *src, - const Attributes &attributes); + static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, const Attributes &attributes); /** Check if the operator configuration is supported, irrespective of fusion * * @param[in] context Workload context within which the operator is running @@ -79,18 +77,15 @@ public: * * @return Status */ - static Status is_supported_op(const GpuWorkloadContext &context, - const ITensorInfo *src, - const Attributes &attributes); + static Status + is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *src, const Attributes &attributes); /** Validate the operator and check if the its configuration is supported and if it can be fused into the workload sketch. * * Parameters are similar to @ref GpuCast::create_op() * * @return Status */ - static Status validate_op(const GpuWorkloadSketch &sketch, - const ITensorInfo *src, - const Attributes &attributes); + static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src, const Attributes &attributes); }; } // namespace dynamic_fusion } // namespace experimental diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuClamp.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuClamp.h index e96251196a..5dd77bdc8e 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuClamp.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuClamp.h @@ -62,9 +62,7 @@ public: * * @return Pointer for the destination tensor info */ - static ITensorInfo *create_op(GpuWorkloadSketch &sketch, - ITensorInfo *src, - const Attributes &attributes); + static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, const Attributes &attributes); /** Check if the operator configuration is supported, irrespective of fusion * @@ -74,9 +72,8 @@ public: * * @return Status */ - static Status is_supported_op(const GpuWorkloadContext &context, - const ITensorInfo *src, - const Attributes &attributes); + static Status + is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *src, const Attributes &attributes); /** Validate the operator and check if it can be fused into the workload sketch. * @@ -84,9 +81,7 @@ public: * * @return Status */ - static Status validate_op(const GpuWorkloadSketch &sketch, - const ITensorInfo *src, - const Attributes &attributes); + static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src, const Attributes &attributes); }; } // namespace dynamic_fusion } // namespace experimental diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuConv2d.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuConv2d.h index 612cc83a1f..da7e860757 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuConv2d.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuConv2d.h @@ -64,11 +64,8 @@ public: * * @return Pointer for the destination tensor info */ - static ITensorInfo *create_op(GpuWorkloadSketch &sketch, - ITensorInfo *src, - ITensorInfo *wei, - ITensorInfo *bia, - const Attributes &attributes); + static ITensorInfo *create_op( + GpuWorkloadSketch &sketch, ITensorInfo *src, ITensorInfo *wei, ITensorInfo *bia, const Attributes &attributes); /** Check if the operator configuration is supported, irrespective of fusion * * @param[in] context Workload context within which the operator is running diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuDepthwiseConv2d.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuDepthwiseConv2d.h index a0cb292730..958569efd7 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuDepthwiseConv2d.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuDepthwiseConv2d.h @@ -63,11 +63,8 @@ public: * * @return Pointer for the destination tensor info */ - static ITensorInfo *create_op(GpuWorkloadSketch &sketch, - ITensorInfo *src, - ITensorInfo *wei, - ITensorInfo *bia, - const Attributes &attributes); + static ITensorInfo *create_op( + GpuWorkloadSketch &sketch, ITensorInfo *src, ITensorInfo *wei, ITensorInfo *bia, const Attributes &attributes); /** Check if the operator configuration is supported, irrespective of fusion * diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuMul.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuMul.h index 3e0ebdd96c..d13e4a3cad 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuMul.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuMul.h @@ -62,9 +62,7 @@ public: * * @return Pointer for the destination tensor info */ - static ITensorInfo *create_op(GpuWorkloadSketch &sketch, - ITensorInfo *lhs, - ITensorInfo *rhs); + static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *lhs, ITensorInfo *rhs); /** Check if the operator configuration is supported, irrespective of fusion * @@ -74,9 +72,7 @@ public: * * @return Status */ - static Status is_supported_op(const GpuWorkloadContext &context, - const ITensorInfo *lhs, - const ITensorInfo *rhs); + static Status is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *lhs, const ITensorInfo *rhs); /** Validate the operator and check if the configuration is supported and if it can be fused into the workload sketch. * @@ -84,9 +80,7 @@ public: * * @return Status */ - static Status validate_op(const GpuWorkloadSketch &sketch, - const ITensorInfo *rhs, - const ITensorInfo *lhs); + static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *rhs, const ITensorInfo *lhs); }; } // namespace dynamic_fusion diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h index 06317511cd..deb5559b9d 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h @@ -56,9 +56,7 @@ public: * @param[in, out] dst Destination tensor info. * If an uninitialized ITensorInfo is passed in, it will be auto-initialized. */ - static void create_op(GpuWorkloadSketch &sketch, - ITensorInfo *src, - ITensorInfo *dst); + static void create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, ITensorInfo *dst); /** Check if the operator configuration is supported, irrespective of fusion. * @@ -68,9 +66,7 @@ public: * * @return Status */ - static Status is_supported_op(const GpuWorkloadContext &context, - const ITensorInfo *src, - const ITensorInfo *dst); + static Status is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *src, const ITensorInfo *dst); /** Validate the operator and check if the its configuration is supported and if it can be fused into the workload sketch. * @@ -78,9 +74,7 @@ public: * * @return Status */ - static Status validate_op(const GpuWorkloadSketch &sketch, - const ITensorInfo *src, - const ITensorInfo *dst); + static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src, const ITensorInfo *dst); }; } // namespace dynamic_fusion diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuPool2d.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuPool2d.h index 65a092c0a2..4d2db0e89c 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuPool2d.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuPool2d.h @@ -55,8 +55,8 @@ public: GpuPool2dSettings use_inf_as_limit(bool use_inf_as_limit); private: - bool _mixed_precision{ false }; - bool _use_inf_as_limit{ true }; + bool _mixed_precision{false}; + bool _use_inf_as_limit{true}; }; /** Operator interface. */ @@ -86,10 +86,8 @@ public: * @param[in] attributes Operator attributes * @param[in] settings Operator settings */ - static ITensorInfo *create_op(GpuWorkloadSketch &sketch, - ITensorInfo *src, - const Attributes &attributes, - const Settings &settings); + static ITensorInfo * + create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, const Attributes &attributes, const Settings &settings); /** Check if the operator configuration is supported, irrespective of fusion * * @param[in] context Workload context within which the operator is running diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuReshape.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuReshape.h index 0f50127199..dc194fcadb 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuReshape.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuReshape.h @@ -62,9 +62,7 @@ public: * * @return Pointer for the destination tensor info */ - static ITensorInfo *create_op(GpuWorkloadSketch &sketch, - ITensorInfo *src, - const Attributes &attributes); + static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, const Attributes &attributes); /** Check if the operator configuration is supported, irrespective of fusion * * @param[in] context Workload context within which the operator is running @@ -73,18 +71,15 @@ public: * * @return Status */ - static Status is_supported_op(const GpuWorkloadContext &context, - const ITensorInfo *src, - const Attributes &attributes); + static Status + is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *src, const Attributes &attributes); /** Validate the operator and check if the its configuration is supported and if it can be fused into the workload sketch. * * Parameters are similar to @ref GpuReshape::create_op() * * @return Status */ - static Status validate_op(const GpuWorkloadSketch &sketch, - const ITensorInfo *src, - const Attributes &attributes); + static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src, const Attributes &attributes); }; } // namespace dynamic_fusion diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuResize.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuResize.h index 2579d10f5b..e2ece80a1d 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuResize.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuResize.h @@ -67,9 +67,7 @@ public: * * @return Pointer for the destination tensor info */ - static ITensorInfo *create_op(GpuWorkloadSketch &sketch, - ITensorInfo *src, - const Attributes &attributes); + static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, const Attributes &attributes); /** Check if the operator configuration is supported, irrespective of fusion * * @param[in] context Workload context within which the operator is running @@ -78,18 +76,15 @@ public: * * @return Status */ - static Status is_supported_op(const GpuWorkloadContext &context, - const ITensorInfo *src, - const Attributes &attributes); + static Status + is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *src, const Attributes &attributes); /** Validate the operator and check if the its configuration is supported and if it can be fused into the workload sketch. * * Parameters are similar to @ref GpuResize::create_op() * * @return Status */ - static Status validate_op(const GpuWorkloadSketch &sketch, - const ITensorInfo *src, - const Attributes &attributes); + static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src, const Attributes &attributes); }; } // namespace dynamic_fusion diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSigmoid.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSigmoid.h index 616a61e614..798b84b906 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSigmoid.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSigmoid.h @@ -59,8 +59,7 @@ public: * * @return Pointer for the destination tensor info */ - static ITensorInfo *create_op(GpuWorkloadSketch &sketch, - ITensorInfo *src); + static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *src); /** Check if the operator configuration is supported, irrespective of fusion * @@ -69,8 +68,7 @@ public: * * @return Status */ - static Status is_supported_op(const GpuWorkloadContext &context, - const ITensorInfo *src); + static Status is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *src); /** Validate the operator and check if it can be fused into the workload sketch. * @@ -78,8 +76,7 @@ public: * * @return Status */ - static Status validate_op(const GpuWorkloadSketch &sketch, - const ITensorInfo *src); + static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src); }; } // namespace dynamic_fusion diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.h index e86ef91e6a..66c2d77310 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.h @@ -62,10 +62,7 @@ public: * @param[in] dst Destination tensor info. * @param[in] attributes Operator attributes */ - static void create_op(GpuWorkloadSketch &sketch, - ITensorInfo *src, - ITensorInfo *dst, - const Attributes &attributes); + static void create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, ITensorInfo *dst, const Attributes &attributes); /** Check if the operator configuration is supported, irrespective of fusion * * @param[in] context Workload context within which the operator is running diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSub.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSub.h index 6f8c2d0b76..2d9255fff2 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSub.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSub.h @@ -65,9 +65,7 @@ public: * * @return Pointer for the destination tensor info */ - static ITensorInfo *create_op(GpuWorkloadSketch &sketch, - ITensorInfo *lhs, - ITensorInfo *rhs); + static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *lhs, ITensorInfo *rhs); /** Check if the operator configuration is supported, irrespective of fusion * @@ -77,9 +75,7 @@ public: * * @return Status */ - static Status is_supported_op(const GpuWorkloadContext &context, - const ITensorInfo *lhs, - const ITensorInfo *rhs); + static Status is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *lhs, const ITensorInfo *rhs); /** Validate the operator and check if its configuration is supported and if it can be fused into the workload sketch. * @@ -87,9 +83,7 @@ public: * * @return Status */ - static Status validate_op(const GpuWorkloadSketch &sketch, - const ITensorInfo *rhs, - const ITensorInfo *lhs); + static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *rhs, const ITensorInfo *lhs); }; } // namespace dynamic_fusion } // namespace experimental diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuTanh.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuTanh.h index 08b5032e93..9c0ce6de02 100644 --- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuTanh.h +++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuTanh.h @@ -59,8 +59,7 @@ public: * * @return Pointer for the destination tensor info */ - static ITensorInfo *create_op(GpuWorkloadSketch &sketch, - ITensorInfo *src); + static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *src); /** Check if the operator configuration is supported, irrespective of fusion * @@ -69,8 +68,7 @@ public: * * @return Status */ - static Status is_supported_op(const GpuWorkloadContext &context, - const ITensorInfo *src); + static Status is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *src); /** Validate the operator and check if it can be fused into the workload sketch. * @@ -78,8 +76,7 @@ public: * * @return Status */ - static Status validate_op(const GpuWorkloadSketch &sketch, - const ITensorInfo *src); + static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src); }; } // namespace dynamic_fusion -- cgit v1.2.1