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

Function llama_sampler_temp_clone

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

Source from the content-addressed store, hash-verified

973}
974
975static struct llama_sampler * llama_sampler_temp_clone(const struct llama_sampler * smpl) {
976 const auto * ctx = (const llama_sampler_temp *) smpl->ctx;
977 return llama_sampler_init_temp(ctx->temp);
978}
979
980static void llama_sampler_temp_free(struct llama_sampler * smpl) {
981 delete (llama_sampler_temp *) smpl->ctx;

Callers

nothing calls this directly

Calls 1

llama_sampler_init_tempFunction · 0.85

Tested by

no test coverage detected