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/llava/clip.cpp | |
parent | c50e40016394f124b97ce39da48148b1f6c01833 (diff) |
ggml : remove n_dims from ggml_tensor (#4469)
ggml-ci
Diffstat (limited to 'examples/llava/clip.cpp')
-rw-r--r-- | examples/llava/clip.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index 4bb7b93b..11246596 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -514,7 +514,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) { ctx_size += padded_size; if (verbosity >= 3) { printf("%s: tensor[%d]: n_dims = %d, name = %s, tensor_size=%zu, padded_size=%zu, offset=%zu\n", __func__, i, - cur->n_dims, cur->name, tensor_size, padded_size, offset); + ggml_n_dims(cur), cur->name, tensor_size, padded_size, offset); } } } @@ -962,7 +962,7 @@ bool clip_model_quantize(const char * fname_inp, const char * fname_out, const i } // quantize only 2D tensors - quantize &= (cur->n_dims == 2); + quantize &= (ggml_n_dims(cur) == 2); if (quantize) { new_type = type; @@ -1035,7 +1035,7 @@ bool clip_model_quantize(const char * fname_inp, const char * fname_out, const i fout.put(0); } - printf("%s: n_dims = %d | quantize=%d | size = %f MB -> %f MB\n", name.c_str(), cur->n_dims, quantize, + printf("%s: n_dims = %d | quantize=%d | size = %f MB -> %f MB\n", name.c_str(), ggml_n_dims(cur), quantize, orig_size / 1024.0 / 1024.0, new_size / 1024.0 / 1024.0); } |