diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2020-10-23 14:24:26 +0100 |
---|---|---|
committer | Michele Di Giorgio <michele.digiorgio@arm.com> | 2020-10-23 15:38:25 +0000 |
commit | 4112eed70d110376674609af92e76c68ae8b3a39 (patch) | |
tree | 8b933e67ec3cfb9c17fbbb0dc84f8082871a3e82 /arm_compute/core | |
parent | 69153b3744542691cc205bafda3bbc9c84d394ce (diff) | |
download | ComputeLibrary-4112eed70d110376674609af92e76c68ae8b3a39.tar.gz |
COMPMID-3731 Remove OpenCL padding: CLHeightConcatenateLayerKernel
Signed-off-by: Giorgio Arena <giorgio.arena@arm.com>
Change-Id: I004128fdcc1207c25d2b959f17f04f9e1a8b4cb5
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4247
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Diffstat (limited to 'arm_compute/core')
-rw-r--r-- | arm_compute/core/CL/kernels/CLHeightConcatenateLayerKernel.h | 1 | ||||
-rw-r--r-- | arm_compute/core/Utils.h | 18 |
2 files changed, 13 insertions, 6 deletions
diff --git a/arm_compute/core/CL/kernels/CLHeightConcatenateLayerKernel.h b/arm_compute/core/CL/kernels/CLHeightConcatenateLayerKernel.h index 4fa2b40881..f362441944 100644 --- a/arm_compute/core/CL/kernels/CLHeightConcatenateLayerKernel.h +++ b/arm_compute/core/CL/kernels/CLHeightConcatenateLayerKernel.h @@ -72,7 +72,6 @@ public: private: unsigned int _height_offset; - unsigned int _num_elems_processed_per_iteration; }; } // namespace arm_compute #endif /* ARM_COMPUTE_CLHEIGHTCONCATENATELAYERKERNEL_H */ diff --git a/arm_compute/core/Utils.h b/arm_compute/core/Utils.h index 681a1a708e..1c02e89ab6 100644 --- a/arm_compute/core/Utils.h +++ b/arm_compute/core/Utils.h @@ -45,6 +45,7 @@ namespace arm_compute { class ITensor; +class ITensorInfo; /** Calculate the rounded up quotient of val / m. * @@ -1096,18 +1097,25 @@ std::string string_from_pixel_value(const PixelValue &value, const DataType data DataType data_type_from_name(const std::string &name); /** Stores padding information before configuring a kernel * + * @param[in] infos list of tensor infos to store the padding info for + * + * @return An unordered map where each tensor info pointer is paired with its original padding info + */ +std::unordered_map<const ITensorInfo *, PaddingSize> get_padding_info(std::initializer_list<const ITensorInfo *> infos); +/** Stores padding information before configuring a kernel + * * @param[in] tensors list of tensors to store the padding info for * - * @return An unordered map where each tensor pointer is paired with its original padding info + * @return An unordered map where each tensor info pointer is paired with its original padding info */ -std::unordered_map<const ITensor *, PaddingSize> get_padding_info(std::initializer_list<const ITensor *> tensors); +std::unordered_map<const ITensorInfo *, PaddingSize> get_padding_info(std::initializer_list<const ITensor *> tensors); /** Check if the previously stored padding info has changed after configuring a kernel * - * @param[in] padding_map an unordered map where each tensor pointer is paired with its original padding info + * @param[in] padding_map an unordered map where each tensor info pointer is paired with its original padding info * - * @return true if any of the tensors has changed its paddings + * @return true if any of the tensor infos has changed its paddings */ -bool has_padding_changed(const std::unordered_map<const ITensor *, PaddingSize> &padding_map); +bool has_padding_changed(const std::unordered_map<const ITensorInfo *, PaddingSize> &padding_map); /** Input Stream operator for @ref DataType * |