| 1508 | } |
| 1509 | |
| 1510 | static inline bool ggml_can_repeat_rows(const struct ggml_tensor * t0, const struct ggml_tensor * t1) { |
| 1511 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
| 1512 | |
| 1513 | return (t0->ne[0] == t1->ne[0]) && ggml_can_repeat(t0, t1); |
| 1514 | } |
| 1515 | |
| 1516 | // assert that pointer is aligned to GGML_MEM_ALIGN |
| 1517 | #define GGML_ASSERT_ALIGNED(ptr) \ |
no test coverage detected