| 696 | } |
| 697 | const int64_t count = gguf_get_n_tensors(gguf); |
| 698 | const int64_t ranks_key = gguf_find_key(gguf, "audiocpp.tensor_ranks"); |
| 699 | const int64_t shapes_key = gguf_find_key(gguf, "audiocpp.tensor_shapes"); |
| 700 | const bool has_exact_shapes = ranks_key >= 0 && shapes_key >= 0; |
| 701 | if ((ranks_key >= 0) != (shapes_key >= 0) || |
| 702 | (has_exact_shapes && |
| 703 | (gguf_get_kv_type(gguf, ranks_key) != GGUF_TYPE_ARRAY || |
no test coverage detected