aboutsummaryrefslogtreecommitdiff
path: root/tests/Utils.h
diff options
context:
space:
mode:
authorSiCong Li <sicong.li@arm.com>2017-06-28 15:27:02 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:15:39 +0100
commit7a0357549a0ffa0ea3ea56fa791a15a35368afe8 (patch)
tree8f9c9d87f8199d69068ff769cc2136f7407363eb /tests/Utils.h
parent4e288696a2ca8e1c9d6d37d90d237c1a18d6e364 (diff)
downloadComputeLibrary-7a0357549a0ffa0ea3ea56fa791a15a35368afe8.tar.gz
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 <moritz.pflanzer@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/Utils.h')
-rw-r--r--tests/Utils.h19
1 files changed, 0 insertions, 19 deletions
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<int>(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.