MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / error_on_mismatching_windows

Method error_on_mismatching_windows

src/core/Validate.cpp:26–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include "arm_compute/core/Validate.h"
25
26arm_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
44arm_compute::Status arm_compute::error_on_invalid_subwindow(const char *function,
45 const char *file,

Callers

nothing calls this directly

Calls 4

stepMethod · 0.80
validateMethod · 0.45
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected