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

Function validate

tests/validation/Validation.cpp:149–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147} // namespace
148
149void validate(const arm_compute::ValidRegion &region, const arm_compute::ValidRegion &reference)
150{
151 ARM_COMPUTE_EXPECT_EQUAL(region.anchor.num_dimensions(), reference.anchor.num_dimensions(),
152 framework::LogLevel::ERRORS);
153 ARM_COMPUTE_EXPECT_EQUAL(region.shape.num_dimensions(), reference.shape.num_dimensions(),
154 framework::LogLevel::ERRORS);
155
156 for (unsigned int d = 0; d < region.anchor.num_dimensions(); ++d)
157 {
158 ARM_COMPUTE_EXPECT_EQUAL(region.anchor[d], reference.anchor[d], framework::LogLevel::ERRORS);
159 }
160
161 for (unsigned int d = 0; d < region.shape.num_dimensions(); ++d)
162 {
163 ARM_COMPUTE_EXPECT_EQUAL(region.shape[d], reference.shape[d], framework::LogLevel::ERRORS);
164 }
165}
166
167void validate(const arm_compute::PaddingSize &padding, const arm_compute::PaddingSize &reference)
168{

Callers

nothing calls this directly

Calls 11

index2coordFunction · 0.85
get_double_dataFunction · 0.85
check_border_elementFunction · 0.85
num_dimensionsMethod · 0.45
data_typeMethod · 0.45
num_elementsMethod · 0.45
shapeMethod · 0.45
num_channelsMethod · 0.45
setMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected