| 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"); |
| 1338 | |
| 1339 | return tensor->ne[2] == 1 && tensor->ne[3] == 1; |
| 1340 | } |
| 1341 | |
| 1342 | bool ggml_is_3d(const struct ggml_tensor * tensor) { |
| 1343 | return tensor->ne[3] == 1; |
no outgoing calls