MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / split_reset

Method split_reset

subprojects/llama.cpp/src/llama-batch.cpp:463–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463void llama_batch_allocr::split_reset() {
464 out_ids.clear();
465
466 n_used = 0;
467
468 used.clear();
469 used.resize(get_n_tokens(), false);
470}
471
472llama_ubatch llama_batch_allocr::split_simple(uint32_t n_ubatch) {
473 // find the first unused token

Callers 5

init_batchMethod · 0.80
init_batchMethod · 0.80
init_batchMethod · 0.80
init_batchMethod · 0.80
init_batchMethod · 0.80

Calls 2

clearMethod · 0.65
resizeMethod · 0.45

Tested by

no test coverage detected