use 6 characters for tensor dims

This commit is contained in:
ddh0 2026-02-11 14:08:01 -06:00
parent e6b790f470
commit 0d22288f00
1 changed files with 1 additions and 1 deletions

View File

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