From 868e54102b1761577e7783c80b66e82896ee063c Mon Sep 17 00:00:00 2001 From: steniu01 Date: Mon, 17 Jul 2017 23:16:00 +0100 Subject: COMPMID-459 Collapse CL Im2col's higher dimensions Change-Id: I0ccc39cbcf6926e6810faf3fe264c4af7adc3f7b Reviewed-on: http://mpd-gerrit.cambridge.arm.com/83070 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- src/core/Validate.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/core/Validate.cpp') diff --git a/src/core/Validate.cpp b/src/core/Validate.cpp index ae2841d7a4..6925133b57 100644 --- a/src/core/Validate.cpp +++ b/src/core/Validate.cpp @@ -60,6 +60,22 @@ void arm_compute::error_on_invalid_subwindow(const char *function, const char *f } } +void arm_compute::error_on_window_not_collapsable_at_dimension(const char *function, const char *file, const int line, + const arm_compute::Window &full, const arm_compute::Window &window, const int dim) +{ + ARM_COMPUTE_UNUSED(function); + ARM_COMPUTE_UNUSED(file); + ARM_COMPUTE_UNUSED(line); + ARM_COMPUTE_UNUSED(dim); + + full.validate(); + window.validate(); + + ARM_COMPUTE_ERROR_ON_LOC(window[dim].start() != 0, function, file, line); + ARM_COMPUTE_ERROR_ON_LOC(window[dim].start() != full[dim].start(), function, file, line); + ARM_COMPUTE_ERROR_ON_LOC(full[dim].end() != window[dim].end(), function, file, line); +} + void arm_compute::error_on_coordinates_dimensions_gte(const char *function, const char *file, const int line, const arm_compute::Coordinates &pos, unsigned int max_dim) { -- cgit v1.2.1