| 99 | } |
| 100 | |
| 101 | std::string llama_format_tensor_shape(const std::vector<int64_t> & ne) { |
| 102 | char buf[256]; |
| 103 | snprintf(buf, sizeof(buf), "%6" PRId64, ne.at(0)); |
| 104 | for (size_t i = 1; i < ne.size(); i++) { |
| 105 | snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), ", %6" PRId64, ne.at(i)); |
| 106 | } |
| 107 | return buf; |
| 108 | } |
| 109 | |
| 110 | std::string llama_format_tensor_shape(const struct ggml_tensor * t) { |
| 111 | char buf[256]; |
no test coverage detected