From 9af4b9e43f2107469182f7bf25b28649ff67a74a Mon Sep 17 00:00:00 2001 From: Slaren <2141330+slaren@users.noreply.github.com> Date: Mon, 1 May 2023 23:39:53 +0200 Subject: [PATCH] minor mprovements to dot file formatting --- ggml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggml.c b/ggml.c index e8b405110..6a9695e23 100644 --- a/ggml.c +++ b/ggml.c @@ -12161,7 +12161,7 @@ void ggml_graph_dump_dot(const struct ggml_cgraph * gb, const struct ggml_cgraph (void *) node, color); if (strlen(node->name) > 0) { - fprintf(fp, "%s |", node->name); + fprintf(fp, "%s | ", node->name); } if (ggml_nelements(node) == 1) { if (node->type == GGML_TYPE_I8 || node->type == GGML_TYPE_I16 || node->type == GGML_TYPE_I32) { @@ -12172,7 +12172,7 @@ void ggml_graph_dump_dot(const struct ggml_cgraph * gb, const struct ggml_cgraph } } else { - fprintf(fp, "CONST %d [%" PRId64 ", %" PRId64 "]\n", i, node->ne[0], node->ne[1]); + fprintf(fp, "CONST %d [%" PRId64 ", %" PRId64 "]", i, node->ne[0], node->ne[1]); } fprintf(fp, "\"; ]\n"); }