| 24 | #include "arm_compute/core/Validate.h" |
| 25 | |
| 26 | arm_compute::Status arm_compute::error_on_mismatching_windows(const char *function, |
| 27 | const char *file, |
| 28 | const int line, |
| 29 | const arm_compute::Window &full, |
| 30 | const arm_compute::Window &win) |
| 31 | { |
| 32 | full.validate(); |
| 33 | win.validate(); |
| 34 | |
| 35 | for (size_t i = 0; i < arm_compute::Coordinates::num_max_dimensions; ++i) |
| 36 | { |
| 37 | ARM_COMPUTE_RETURN_ERROR_ON_LOC(full[i].start() != win[i].start(), function, file, line); |
| 38 | ARM_COMPUTE_RETURN_ERROR_ON_LOC(full[i].end() != win[i].end(), function, file, line); |
| 39 | ARM_COMPUTE_RETURN_ERROR_ON_LOC(full[i].step() != win[i].step(), function, file, line); |
| 40 | } |
| 41 | return arm_compute::Status{}; |
| 42 | } |
| 43 | |
| 44 | arm_compute::Status arm_compute::error_on_invalid_subwindow(const char *function, |
| 45 | const char *file, |