MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_set_scratch

Function ggml_set_scratch

ggml.c:2312–2318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2310}
2311
2312size_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
2320bool ggml_get_no_alloc(struct ggml_context * ctx) {
2321 return ctx->no_alloc;

Callers 2

llama_build_train_graphsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected