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

Function llama_batch_free

llama.cpp:10658–10670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10656}
10657
10658void llama_batch_free(struct llama_batch batch) {
10659 if (batch.token) free(batch.token);
10660 if (batch.embd) free(batch.embd);
10661 if (batch.pos) free(batch.pos);
10662 if (batch.n_seq_id) free(batch.n_seq_id);
10663 if (batch.seq_id) {
10664 for (int i = 0; i < batch.n_tokens; ++i) {
10665 free(batch.seq_id[i]);
10666 }
10667 free(batch.seq_id);
10668 }
10669 if (batch.logits) free(batch.logits);
10670}
10671
10672int llama_decode(
10673 struct llama_context * ctx,

Callers 5

mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by 1

mainFunction · 0.40