diff options
author | slaren <slarengh@gmail.com> | 2023-12-14 16:52:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 16:52:08 +0100 |
commit | cafcd4f89500b8afef722cdb08088eceb8a22572 (patch) | |
tree | ab3967dc84020b6be46c378ddaf42a8f9da607f1 /examples/gguf/gguf.cpp | |
parent | c50e40016394f124b97ce39da48148b1f6c01833 (diff) |
ggml : remove n_dims from ggml_tensor (#4469)
ggml-ci
Diffstat (limited to 'examples/gguf/gguf.cpp')
-rw-r--r-- | examples/gguf/gguf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gguf/gguf.cpp b/examples/gguf/gguf.cpp index 9ab63a29..9e24bf24 100644 --- a/examples/gguf/gguf.cpp +++ b/examples/gguf/gguf.cpp @@ -195,7 +195,7 @@ static bool gguf_ex_read_1(const std::string & fname) { struct ggml_tensor * cur = ggml_get_tensor(ctx_data, name); - printf("%s: tensor[%d]: n_dims = %d, name = %s, data = %p\n", __func__, i, cur->n_dims, cur->name, cur->data); + printf("%s: tensor[%d]: n_dims = %d, name = %s, data = %p\n", __func__, i, ggml_n_dims(cur), cur->name, cur->data); // print first 10 elements const float * data = (const float *) cur->data; |