| 17 | }; |
| 18 | |
| 19 | static std::string ggml_ne_string(const ggml_tensor * t) { |
| 20 | std::string str; |
| 21 | for (int i = 0; i < GGML_MAX_DIMS; ++i) { |
| 22 | str += std::to_string(t->ne[i]); |
| 23 | if (i + 1 < GGML_MAX_DIMS) { |
| 24 | str += ", "; |
| 25 | } |
| 26 | } |
| 27 | return str; |
| 28 | } |
| 29 | |
| 30 | static void ggml_print_tensor(uint8_t * data, ggml_type type, const int64_t * ne, const size_t * nb, int64_t n) { |
| 31 | GGML_ASSERT(n > 0); |
no test coverage detected