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

Function llama_encode

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

Source from the content-addressed store, hash-verified

2674///
2675
2676int32_t llama_encode(
2677 llama_context * ctx,
2678 llama_batch batch) {
2679 const int ret = ctx->encode(batch);
2680 if (ret != 0) {
2681 LLAMA_LOG_ERROR("%s: failed to encode, ret = %d\n", __func__, ret);
2682 }
2683
2684 return ret;
2685}
2686
2687int32_t llama_decode(
2688 llama_context * ctx,

Callers 4

mainFunction · 0.85
mainFunction · 0.85
common_init_from_paramsFunction · 0.85
mainFunction · 0.85

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected