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

Function llama_sampler_chain_reset

smallthinker/src/llama-sampling.cpp:440–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440static void llama_sampler_chain_reset(struct llama_sampler * smpl) {
441 auto * chain = (llama_sampler_chain *) smpl->ctx;
442
443 for (auto * smpl : chain->samplers) {
444 llama_sampler_reset(smpl);
445 }
446
447 chain->t_sample_us = 0;
448 chain->n_sample = 0;
449}
450
451static struct llama_sampler * llama_sampler_chain_clone(const struct llama_sampler * smpl) {
452 const auto * chain_src = (const llama_sampler_chain *) smpl->ctx;

Callers

nothing calls this directly

Calls 1

llama_sampler_resetFunction · 0.85

Tested by

no test coverage detected