| 2310 | } |
| 2311 | |
| 2312 | size_t ggml_set_scratch(struct ggml_context * ctx, struct ggml_scratch scratch) { |
| 2313 | const size_t result = ctx->scratch.data ? ctx->scratch.offs : 0; |
| 2314 | |
| 2315 | ctx->scratch = scratch; |
| 2316 | |
| 2317 | return result; |
| 2318 | } |
| 2319 | |
| 2320 | bool ggml_get_no_alloc(struct ggml_context * ctx) { |
| 2321 | return ctx->no_alloc; |
no outgoing calls
no test coverage detected