From 11d58d29de465c5d65de4b51f97bda348e872885 Mon Sep 17 00:00:00 2001 From: Aaron Teo Date: Wed, 23 Jul 2025 14:54:44 +0800 Subject: [PATCH] ggml-zdnn: add comments to prevent accidentally deleting lines Signed-off-by: Aaron Teo --- ggml/src/ggml-zdnn/ggml-zdnn.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ggml/src/ggml-zdnn/ggml-zdnn.cpp b/ggml/src/ggml-zdnn/ggml-zdnn.cpp index 631e9dc957..1c90e7f1e0 100644 --- a/ggml/src/ggml-zdnn/ggml-zdnn.cpp +++ b/ggml/src/ggml-zdnn/ggml-zdnn.cpp @@ -114,6 +114,9 @@ static void ggml_backend_zdnn_mul_mat(ggml_backend_zdnn_context * ctx, const ggm const int64_t weights_dim[GGML_MAX_DIMS] = { 1, 1, weights_cols, weights_rows }; const int64_t bias_dim [GGML_MAX_DIMS] = { 1, 1, 1, output_cols }; + //! Something to do with these 2 lines that we can't remove + //! If we remove it, the entire computation will throw an error + //! Even though we don't use these tensors lol ggml_zdnn_create_tensor(pre_tfm_desc_weights, tfm_desc_weights, ztensor_weights, src0, weights_dim, ZDNN_2D); ggml_zdnn_create_tensor(pre_tfm_desc_bias, tfm_desc_bias, ztensor_bias, dst, bias_dim, ZDNN_1D);