From 7a0357549a0ffa0ea3ea56fa791a15a35368afe8 Mon Sep 17 00:00:00 2001 From: SiCong Li Date: Wed, 28 Jun 2017 15:27:02 +0100 Subject: COMPMID-424 Clean up validation tests for 2D spatial filter functions * Remove shape_to_valid_region_undefined_border * Remove hardcoded border size Change-Id: I3c64148d8f7ce7e960f21d88d3af43bb23501683 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/79106 Reviewed-by: Moritz Pflanzer Tested-by: Kaizen Reviewed-by: Georgios Pinitas --- tests/Utils.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'tests/Utils.h') diff --git a/tests/Utils.h b/tests/Utils.h index 219cbd0368..a6181b3c78 100644 --- a/tests/Utils.h +++ b/tests/Utils.h @@ -475,25 +475,6 @@ inline ValidRegion shape_to_valid_region(TensorShape shape, bool border_undefine return ValidRegion(std::move(anchor), std::move(shape)); } -/** Create a valid region covering the tensor shape with UNDEFINED border mode and specified border size. - * - * @param[in] shape Shape used as size of the valid region. - * @param[in] border_size Border size used to specify the region to exclude. - * - * @return A valid region starting at (@p border_size.left, @p border_size.top, ...) with reduced size of @p shape. - */ -inline ValidRegion shape_to_valid_region_undefined_border(TensorShape shape, BorderSize border_size) -{ - ARM_COMPUTE_ERROR_ON(shape.num_dimensions() < 2); - Coordinates anchor; - anchor.set(std::max(0, shape.num_dimensions() - 1), 0); - anchor.set(0, border_size.left); - anchor.set(1, border_size.top); - shape.set(0, shape.x() - border_size.left - border_size.right); - shape.set(1, shape.y() - border_size.top - border_size.bottom); - return ValidRegion(std::move(anchor), shape); -} - /** Write the value after casting the pointer according to @p data_type. * * @warning The type of the value must match the specified data type. -- cgit v1.2.1