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

Function is_in_valid_region

tests/Utils.h:410–421  ·  view source on GitHub ↗

Check if a coordinate is within a valid region */

Source from the content-addressed store, hash-verified

408
409/** Check if a coordinate is within a valid region */
410inline bool is_in_valid_region(const ValidRegion &valid_region, Coordinates coord)
411{
412 for (size_t d = 0; d < Coordinates::num_max_dimensions; ++d)
413 {
414 if (coord[d] < valid_region.start(d) || coord[d] >= valid_region.end(d))
415 {
416 return false;
417 }
418 }
419
420 return true;
421}
422
423/** Create and initialize a tensor of the given type.
424 *

Callers 3

validateFunction · 0.85
validate_wrapFunction · 0.85
non_maxima_suppressionFunction · 0.85

Calls 2

startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected