| 1452 | } |
| 1453 | |
| 1454 | bool ggml_is_contiguous_rows(const struct ggml_tensor * tensor) { |
| 1455 | return |
| 1456 | tensor->ne[0] == ggml_blck_size(tensor->type) || |
| 1457 | tensor->nb[0] == ggml_type_size(tensor->type); |
| 1458 | } |
| 1459 | |
| 1460 | static inline bool ggml_is_padded_1d(const struct ggml_tensor * tensor) { |
| 1461 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
no test coverage detected