From 81da18e71ccfc196d4516fbea5dc3a6a1f92dccb Mon Sep 17 00:00:00 2001 From: Pierrick Hymbert Date: Fri, 12 Apr 2024 10:26:47 +0200 Subject: [PATCH] eval-callback: use ggml_op_desc to pretty print unary operator name (#6631) --- examples/eval-callback/eval-callback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/eval-callback/eval-callback.cpp b/examples/eval-callback/eval-callback.cpp index f70d62128..05f7d6ab1 100644 --- a/examples/eval-callback/eval-callback.cpp +++ b/examples/eval-callback/eval-callback.cpp @@ -93,7 +93,7 @@ static bool ggml_debug(struct ggml_tensor * t, bool ask, void * user_data) { } printf("%s: %24s = (%s) %10s(%s{%s}, %s}) = {%s}\n", __func__, - t->name, ggml_type_name(t->type), ggml_op_name(t->op), + t->name, ggml_type_name(t->type), ggml_op_desc(t), src0->name, ggml_ne_string(src0).c_str(), src1 ? src1_str : "", ggml_ne_string(t).c_str());