| 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"); |
| 1491 | |
| 1492 | return |
| 1493 | (t0->nb[0] == t1->nb[0]) && |
| 1494 | (t0->nb[1] == t1->nb[1]) && |
| 1495 | (t0->nb[2] == t1->nb[2]) && |
| 1496 | (t0->nb[3] == t1->nb[3]); |
| 1497 | } |
| 1498 | |
| 1499 | // check if t1 can be represented as a repetition of t0 |
| 1500 | bool ggml_can_repeat(const struct ggml_tensor * t0, const struct ggml_tensor * t1) { |
no outgoing calls
no test coverage detected