ggml : remove ggml_scratch (#10121)

ggml-ci
This commit is contained in:
Georgi Gerganov 2024-11-01 12:58:45 +02:00 committed by GitHub
parent 815fe72adc
commit 1804adb0cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 74 deletions

View file

@ -655,14 +655,6 @@ extern "C" {
void * abort_callback_data;
};
// scratch buffer
// TODO: deprecate and remove
struct ggml_scratch {
size_t offs;
size_t size;
void * data;
};
struct ggml_init_params {
// memory pool
size_t mem_size; // bytes
@ -766,7 +758,6 @@ extern "C" {
GGML_API size_t ggml_used_mem(const struct ggml_context * ctx);
GGML_API size_t ggml_set_scratch (struct ggml_context * ctx, struct ggml_scratch scratch);
GGML_API bool ggml_get_no_alloc(struct ggml_context * ctx);
GGML_API void ggml_set_no_alloc(struct ggml_context * ctx, bool no_alloc);