mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-04 09:32:00 +00:00 
			
		
		
		
	imatrix : avoid using designated initializers in C++
This commit is contained in:
		@@ -283,9 +283,9 @@ void IMatrixCollector::save_imatrix(int32_t n_chunk) const {
 | 
				
			|||||||
    std::sort(to_store.begin(), to_store.end());
 | 
					    std::sort(to_store.begin(), to_store.end());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    struct ggml_init_params params = {
 | 
					    struct ggml_init_params params = {
 | 
				
			||||||
        .mem_size   = data_size,
 | 
					        /* .mem_size   = */ data_size,
 | 
				
			||||||
        .mem_buffer = NULL,
 | 
					        /* .mem_buffer = */ NULL,
 | 
				
			||||||
        .no_alloc   = false,
 | 
					        /* .no_alloc   = */ false,
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    struct ggml_context * ctx = ggml_init(params);
 | 
					    struct ggml_context * ctx = ggml_init(params);
 | 
				
			||||||
    struct gguf_context * ctx_gguf = gguf_init_empty();
 | 
					    struct gguf_context * ctx_gguf = gguf_init_empty();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user