summaryrefslogtreecommitdiff
path: root/examples/finetune
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 /examples/finetune
parentc50e40016394f124b97ce39da48148b1f6c01833 (diff)
ggml : remove n_dims from ggml_tensor (#4469)
ggml-ci
Diffstat (limited to 'examples/finetune')
-rw-r--r--examples/finetune/finetune.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/finetune/finetune.cpp b/examples/finetune/finetune.cpp
index af46e44a..b9849e8c 100644
--- a/examples/finetune/finetune.cpp
+++ b/examples/finetune/finetune.cpp
@@ -1110,7 +1110,7 @@ static void write_tensor(struct llama_file * file, struct ggml_tensor * tensor,
name = ggml_get_name(tensor);
}
uint32_t name_len = strlen(name);
- uint32_t nd = tensor->n_dims;
+ uint32_t nd = ggml_n_dims(tensor);
uint32_t ne[4] = { (uint32_t)tensor->ne[0],
(uint32_t)tensor->ne[1],
(uint32_t)tensor->ne[2],