| 2116 | } |
| 2117 | |
| 2118 | bool ggml_are_same_shape(const struct ggml_tensor * t0, const struct ggml_tensor * t1) { |
| 2119 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
| 2120 | |
| 2121 | return |
| 2122 | (t0->ne[0] == t1->ne[0] ) && |
| 2123 | (t0->ne[1] == t1->ne[1] ) && |
| 2124 | (t0->ne[2] == t1->ne[2] ) && |
| 2125 | (t0->ne[3] == t1->ne[3] ); |
| 2126 | } |
| 2127 | |
| 2128 | // check if t1 can be represented as a repeatition of t0 |
| 2129 | static inline bool ggml_can_repeat(const struct ggml_tensor * t0, const struct ggml_tensor * t1) { |
no outgoing calls
no test coverage detected