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

Function have_different_dimensions

arm_compute/core/Validate.h:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 */
57template <typename T>
58inline bool have_different_dimensions(const Dimensions<T> &dim1, const Dimensions<T> &dim2, unsigned int upper_dim)
59{
60 for (unsigned int i = upper_dim; i < arm_compute::Dimensions<T>::num_max_dimensions; ++i)
61 {
62 if (dim1[i] != dim2[i])
63 {
64 return true;
65 }
66 }
67
68 return false;
69}
70
71/** Function to compare two @ref Dimensions objects and throw an error on mismatch.
72 *

Callers 15

operator()Method · 0.85
validate_argumentsFunction · 0.85
validateMethod · 0.85
validate_argumentsFunction · 0.85
validate_argumentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected