// create the ggml context
{
- struct ggml_init_params params = {
- .mem_size = ctx_size,
- .mem_buffer = NULL,
- };
+ struct ggml_init_params params;
+ params.mem_size = ctx_size;
+ params.mem_buffer = NULL;
model.ctx = ggml_init(params);
if (!model.ctx) {
}
}
- struct ggml_init_params params = {
- .mem_size = buf_size,
- .mem_buffer = buf,
- };
+ struct ggml_init_params params;
+ params.mem_size = buf_size;
+ params.mem_buffer = buf;
struct ggml_context * ctx0 = ggml_init(params);
struct ggml_cgraph gf = { .n_threads = n_threads };
// create the ggml context
{
- struct ggml_init_params params = {
- .mem_size = ctx_size,
- .mem_buffer = NULL,
- };
+ struct ggml_init_params params;
+ params.mem_size = ctx_size;
+ params.mem_buffer = NULL;
model.ctx = ggml_init(params);
if (!model.ctx) {
}
}
- struct ggml_init_params params = {
- .mem_size = buf_size,
- .mem_buffer = buf,
- };
+ struct ggml_init_params params;
+ params.mem_size = buf_size;
+ params.mem_buffer = buf;
struct ggml_context * ctx0 = ggml_init(params);
struct ggml_cgraph gf = { .n_threads = n_threads };