From 4ceb453b00185ded5ddbaf83d40eadeb2ed28ec4 Mon Sep 17 00:00:00 2001 From: SiCong Li Date: Mon, 13 Mar 2023 15:02:23 +0000 Subject: Add CropInfo to BatchToSpace reference and fixture Partially resolves COMPMID-5918, COMPMID-5865 Signed-off-by: SiCong Li Change-Id: Ib3b01e7dc1c944184a4c038045bf0469fbb9ff45 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9321 Tested-by: Arm Jenkins Reviewed-by: Viet-Hoa Do Comments-Addressed: Arm Jenkins --- arm_compute/core/Types.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'arm_compute/core/Types.h') diff --git a/arm_compute/core/Types.h b/arm_compute/core/Types.h index 946b8a6cb6..8434611f7a 100644 --- a/arm_compute/core/Types.h +++ b/arm_compute/core/Types.h @@ -151,9 +151,9 @@ enum class DepthwiseConvolutionFunction /** Available DeconvolutionMethod*/ enum class DeconvolutionMethod { - GEMM, /**< Deconvolution using GEMM */ - DIRECT, /**< Direct deconvolution */ - UPSCALE_CONV2D /**< Deconvolution with Upscaling */ + GEMM, /**< Deconvolution using GEMM */ + DIRECT, /**< Direct deconvolution */ + UPSCALE_CONV2D /**< Deconvolution with Upscaling */ }; /** Available FuseBatchNormalizationType*/ @@ -2734,27 +2734,31 @@ public: return _fused_act; } /* Set Adjoint LHS flag */ - MatMulInfo& adj_lhs(bool adj_lhs) + MatMulInfo &adj_lhs(bool adj_lhs) { _adj_lhs = adj_lhs; return *this; } /* Set Adjoint RHS flag */ - MatMulInfo& adj_rhs(bool adj_rhs) + MatMulInfo &adj_rhs(bool adj_rhs) { _adj_rhs = adj_rhs; return *this; } /* Set Fused Activation Layer Info */ - MatMulInfo& fused_activation(const ActivationLayerInfo& act_info) + MatMulInfo &fused_activation(const ActivationLayerInfo &act_info) { _fused_act = act_info; return *this; } + private: - bool _adj_lhs{false}; - bool _adj_rhs{false}; + bool _adj_lhs{ false }; + bool _adj_rhs{ false }; ActivationLayerInfo _fused_act{}; // disabled by default }; + +/** Class for holding information related to cropping */ +using CropInfo = Padding2D; } // namespace arm_compute #endif /* ARM_COMPUTE_TYPES_H */ -- cgit v1.2.1