ggml : remove n_dims from ggml_tensor (#4469)

ggml-ci
This commit is contained in:
slaren authored and GitHub committed 2023-12-14 16:52:08 +01:00
1 parent c50e400163
commit cafcd4f895
9 files changed
+81 -73

No files matched your search

+1 -1
View File
@@ -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;