| 2021 | } |
| 2022 | |
| 2023 | static inline bool ggml_is_vector(const struct ggml_tensor * tensor) { |
| 2024 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
| 2025 | |
| 2026 | return tensor->ne[1] == 1 && tensor->ne[2] == 1 && tensor->ne[3] == 1; |
| 2027 | } |
| 2028 | |
| 2029 | static inline bool ggml_is_matrix(const struct ggml_tensor * tensor) { |
| 2030 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
no outgoing calls
no test coverage detected