fix: rm designated initializers
This commit is contained in:
parent
d78e816365
commit
4759bfd64c
1 changed files with 6 additions and 6 deletions
|
@ -265,9 +265,9 @@ static ggml_cgraph * clip_image_build_graph(const clip_ctx * ctx, const clip_ima
|
||||||
auto & buf_compute = ctx->buf_compute;
|
auto & buf_compute = ctx->buf_compute;
|
||||||
|
|
||||||
struct ggml_init_params params = {
|
struct ggml_init_params params = {
|
||||||
.mem_size = buf_compute.size,
|
/*.mem_size =*/ buf_compute.size,
|
||||||
.mem_buffer = buf_compute.data,
|
/*.mem_buffer =*/ buf_compute.data,
|
||||||
.no_alloc = false,
|
/*.no_alloc =*/ false,
|
||||||
};
|
};
|
||||||
|
|
||||||
params.no_alloc = true;
|
params.no_alloc = true;
|
||||||
|
@ -559,9 +559,9 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
|
||||||
// load tensors
|
// load tensors
|
||||||
{
|
{
|
||||||
struct ggml_init_params params = {
|
struct ggml_init_params params = {
|
||||||
.mem_size = ctx_size,
|
/*.mem_size =*/ ctx_size,
|
||||||
.mem_buffer = NULL,
|
/*.mem_buffer =*/ NULL,
|
||||||
.no_alloc = false,
|
/*.no_alloc =*/ false,
|
||||||
};
|
};
|
||||||
|
|
||||||
new_clip->ctx = ggml_init(params);
|
new_clip->ctx = ggml_init(params);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue