| 1322 | } |
| 1323 | |
| 1324 | bool ggml_is_scalar(const struct ggml_tensor * tensor) { |
| 1325 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
| 1326 | |
| 1327 | return tensor->ne[0] == 1 && tensor->ne[1] == 1 && tensor->ne[2] == 1 && tensor->ne[3] == 1; |
| 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"); |
no outgoing calls