From 4759bfd64cd8dc87702f1cb0e8b9d22b3d0ec5bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Yusuf=20Sar=C4=B1g=C3=B6z?= Date: Mon, 9 Oct 2023 15:54:55 +0300 Subject: [PATCH] fix: rm designated initializers --- examples/llava/clip.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index 0950be33a..89af6bb4f 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -265,9 +265,9 @@ static ggml_cgraph * clip_image_build_graph(const clip_ctx * ctx, const clip_ima auto & buf_compute = ctx->buf_compute; struct ggml_init_params params = { - .mem_size = buf_compute.size, - .mem_buffer = buf_compute.data, - .no_alloc = false, + /*.mem_size =*/ buf_compute.size, + /*.mem_buffer =*/ buf_compute.data, + /*.no_alloc =*/ false, }; params.no_alloc = true; @@ -559,9 +559,9 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) { // load tensors { struct ggml_init_params params = { - .mem_size = ctx_size, - .mem_buffer = NULL, - .no_alloc = false, + /*.mem_size =*/ ctx_size, + /*.mem_buffer =*/ NULL, + /*.no_alloc =*/ false, }; new_clip->ctx = ggml_init(params);