| 1374 | } |
| 1375 | |
| 1376 | bool ggml_is_scalar(const struct ggml_tensor * tensor) { |
| 1377 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
| 1378 | |
| 1379 | return tensor->ne[0] == 1 && tensor->ne[1] == 1 && tensor->ne[2] == 1 && tensor->ne[3] == 1; |
| 1380 | } |
| 1381 | |
| 1382 | bool ggml_is_vector(const struct ggml_tensor * tensor) { |
| 1383 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
no outgoing calls