diff options
author | steniu01 <steven.niu@arm.com> | 2017-07-17 23:16:00 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 868e54102b1761577e7783c80b66e82896ee063c (patch) | |
tree | 8578c4fc3b44c867ae9c8529a3b21730a5ce14f3 /src/core/Validate.cpp | |
parent | 5cb4d6a1d0f39bf800edb43c0ec7c96dae10e132 (diff) | |
download | ComputeLibrary-868e54102b1761577e7783c80b66e82896ee063c.tar.gz |
COMPMID-459 Collapse CL Im2col's higher dimensions
Change-Id: I0ccc39cbcf6926e6810faf3fe264c4af7adc3f7b
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/83070
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/core/Validate.cpp')
-rw-r--r-- | src/core/Validate.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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) { |