| 1431 | } |
| 1432 | |
| 1433 | bool ggml_is_contiguous_2(const struct ggml_tensor * tensor) { |
| 1434 | return ggml_is_contiguous_n(tensor, 2); |
| 1435 | } |
| 1436 | |
| 1437 | bool ggml_is_contiguously_allocated(const struct ggml_tensor * tensor) { |
| 1438 | return ggml_nbytes(tensor) == ggml_nelements(tensor) * ggml_type_size(tensor->type)/ggml_blck_size(tensor->type); |
no test coverage detected