Removed custom reset
This commit is contained in:
parent
aa458d1611
commit
9ef8cb5a3e
1 changed files with 1 additions and 6 deletions
|
@ -1127,16 +1127,11 @@ static void llama_sampler_k_shift_free(struct llama_sampler * smpl) {
|
|||
delete (llama_sampler_k_shift *) smpl->ctx;
|
||||
}
|
||||
|
||||
static void llama_sampler_k_shift_reset(struct llama_sampler * smpl) {
|
||||
auto * ctx = (llama_sampler_k_shift *) smpl->ctx;
|
||||
ctx->k_set = false;
|
||||
}
|
||||
|
||||
static struct llama_sampler_i llama_sampler_k_shift_i = {
|
||||
/* .name = */ llama_sampler_k_shift_name,
|
||||
/* .accept = */ nullptr,
|
||||
/* .apply = */ llama_sampler_k_shift_apply,
|
||||
/* .reset = */ llama_sampler_k_shift_reset,
|
||||
/* .reset = */ nullptr,
|
||||
/* .clone = */ llama_sampler_k_shift_clone,
|
||||
/* .free = */ llama_sampler_k_shift_free,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue