summaryrefslogtreecommitdiff
path: root/llama.cpp
diff options
context:
space:
mode:
authorslaren <slarengh@gmail.com>2023-12-14 16:52:08 +0100
committerGitHub <noreply@github.com>2023-12-14 16:52:08 +0100
commitcafcd4f89500b8afef722cdb08088eceb8a22572 (patch)
treeab3967dc84020b6be46c378ddaf42a8f9da607f1 /llama.cpp
parentc50e40016394f124b97ce39da48148b1f6c01833 (diff)
ggml : remove n_dims from ggml_tensor (#4469)
ggml-ci
Diffstat (limited to 'llama.cpp')
-rw-r--r--llama.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llama.cpp b/llama.cpp
index 456807d9..eddb7085 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -8471,7 +8471,7 @@ static void llama_model_quantize_internal(const std::string & fname_inp, const s
bool quantize = name.rfind("weight") == name.size() - 6; // ends with 'weight'?
// quantize only 2D tensors
- quantize &= (tensor->n_dims == 2);
+ quantize &= (ggml_n_dims(tensor) == 2);
quantize &= params->quantize_output_tensor || name != "output.weight";
quantize &= !params->only_copy;