| 1477 | } |
| 1478 | |
| 1479 | bool ggml_are_same_shape(const struct ggml_tensor * t0, const struct ggml_tensor * t1) { |
| 1480 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
| 1481 | |
| 1482 | return |
| 1483 | (t0->ne[0] == t1->ne[0]) && |
| 1484 | (t0->ne[1] == t1->ne[1]) && |
| 1485 | (t0->ne[2] == t1->ne[2]) && |
| 1486 | (t0->ne[3] == t1->ne[3]); |
| 1487 | } |
| 1488 | |
| 1489 | bool ggml_are_same_stride(const struct ggml_tensor * t0, const struct ggml_tensor * t1) { |
| 1490 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
no outgoing calls