use 6 characters for tensor dims (cont.)

This commit is contained in:
ddh0 2026-02-11 14:29:22 -06:00
parent 56c27b13ad
commit c3f42dedd1
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ std::string llama_format_tensor_shape(const std::vector<int64_t> & ne) {
std::string llama_format_tensor_shape(const struct ggml_tensor * t) {
char buf[256];
snprintf(buf, sizeof(buf), "%5" PRId64, t->ne[0]);
snprintf(buf, sizeof(buf), "%6" PRId64, t->ne[0]);
for (int i = 1; i < GGML_MAX_DIMS; i++) {
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), ", %6" PRId64, t->ne[i]);
}