| 416 | } |
| 417 | |
| 418 | static void llama_sampler_chain_accept(struct llama_sampler * smpl, llama_token token) { |
| 419 | auto * chain = (llama_sampler_chain *) smpl->ctx; |
| 420 | |
| 421 | time_meas tm(chain->t_sample_us, chain->params.no_perf); |
| 422 | |
| 423 | for (auto * smpl : chain->samplers) { |
| 424 | llama_sampler_accept(smpl, token); |
| 425 | } |
| 426 | |
| 427 | chain->n_sample++; |
| 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; |
nothing calls this directly
no test coverage detected