diff options
author | SiCong Li <sicong.li@arm.com> | 2023-03-13 15:02:23 +0000 |
---|---|---|
committer | SiCong Li <sicong.li@arm.com> | 2023-03-14 15:38:29 +0000 |
commit | 4ceb453b00185ded5ddbaf83d40eadeb2ed28ec4 (patch) | |
tree | 13d56b417d5c2b186bde627f4f5d0f05b7228a53 /arm_compute/core/Types.h | |
parent | aaa9da1efa83911c7a67d50811ad669a92a7d12f (diff) | |
download | ComputeLibrary-4ceb453b00185ded5ddbaf83d40eadeb2ed28ec4.tar.gz |
Add CropInfo to BatchToSpace reference and fixture
Partially resolves COMPMID-5918, COMPMID-5865
Signed-off-by: SiCong Li <sicong.li@arm.com>
Change-Id: Ib3b01e7dc1c944184a4c038045bf0469fbb9ff45
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9321
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Viet-Hoa Do <viet-hoa.do@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/Types.h')
-rw-r--r-- | arm_compute/core/Types.h | 20 |
1 files changed, 12 insertions, 8 deletions
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 */ |