| 428 | } |
| 429 | |
| 430 | static void llama_sampler_chain_apply(struct llama_sampler * smpl, llama_token_data_array * cur_p) { |
| 431 | auto * chain = (llama_sampler_chain *) smpl->ctx; |
| 432 | |
| 433 | time_meas tm(chain->t_sample_us, chain->params.no_perf); |
| 434 | |
| 435 | for (auto * smpl : chain->samplers) { |
| 436 | llama_sampler_apply(smpl, cur_p); |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | static void llama_sampler_chain_reset(struct llama_sampler * smpl) { |
| 441 | auto * chain = (llama_sampler_chain *) smpl->ctx; |
nothing calls this directly
no test coverage detected