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

Function llama_sampler_free

subprojects/llama.cpp/src/llama-sampling.cpp:416–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416void llama_sampler_free(struct llama_sampler * smpl) {
417 if (smpl == nullptr) {
418 return;
419 }
420
421 if (smpl->iface->free) {
422 smpl->iface->free(smpl);
423 }
424
425 delete smpl;
426}
427
428// empty sampler
429

Callers 8

llama_sampler_chain_freeFunction · 0.85
mainFunction · 0.85
applyMethod · 0.85
benchFunction · 0.85
testFunction · 0.85
common_sampler_freeFunction · 0.85
operator()Method · 0.85

Calls 1

freeMethod · 0.45

Tested by 4

mainFunction · 0.68
applyMethod · 0.68
benchFunction · 0.68
testFunction · 0.68