| 56 | */ |
| 57 | template <typename T> |
| 58 | inline 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 | * |
no outgoing calls
no test coverage detected