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

Function llama_sampler_temp_ext_clone

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

Source from the content-addressed store, hash-verified

1083}
1084
1085static struct llama_sampler * llama_sampler_temp_ext_clone(const struct llama_sampler * smpl) {
1086 const auto * ctx = (const llama_sampler_temp_ext *) smpl->ctx;
1087 return llama_sampler_init_temp_ext(ctx->temp, ctx->delta, ctx->exponent);
1088}
1089
1090static void llama_sampler_temp_ext_free(struct llama_sampler * smpl) {
1091 delete (llama_sampler_temp_ext *) smpl->ctx;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected