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