| 1867 | } |
| 1868 | |
| 1869 | static std::string llama_format_tensor_shape(const std::vector<int64_t> & ne) { |
| 1870 | char buf[256]; |
| 1871 | snprintf(buf, sizeof(buf), "%5" PRId64, ne.at(0)); |
| 1872 | for (size_t i = 1; i < ne.size(); i++) { |
| 1873 | snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), ", %5" PRId64, ne.at(i)); |
| 1874 | } |
| 1875 | return buf; |
| 1876 | } |
| 1877 | |
| 1878 | static std::string llama_format_tensor_shape(const struct ggml_tensor * t) { |
| 1879 | char buf[256]; |
no test coverage detected