| 1328 | } |
| 1329 | |
| 1330 | bool ggml_is_vector(const struct ggml_tensor * tensor) { |
| 1331 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
| 1332 | |
| 1333 | return tensor->ne[1] == 1 && tensor->ne[2] == 1 && tensor->ne[3] == 1; |
| 1334 | } |
| 1335 | |
| 1336 | bool ggml_is_matrix(const struct ggml_tensor * tensor) { |
| 1337 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
no outgoing calls