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

Function llama_state_get_data

smallthinker/src/llama-context.cpp:2601–2605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2599}
2600
2601size_t llama_state_get_data(llama_context * ctx, uint8_t * dst, size_t size) {
2602 ctx->synchronize();
2603
2604 return ctx->state_get_data(dst, size);
2605}
2606
2607// Sets the state reading from the specified source address
2608size_t llama_state_set_data(llama_context * ctx, const uint8_t * src, size_t size) {

Callers 2

llama_copy_state_dataFunction · 0.85
mainFunction · 0.85

Calls 2

synchronizeMethod · 0.80
state_get_dataMethod · 0.80

Tested by

no test coverage detected