| 438 | } |
| 439 | |
| 440 | static void llama_sampler_chain_reset(struct llama_sampler * smpl) { |
| 441 | auto * chain = (llama_sampler_chain *) smpl->ctx; |
| 442 | |
| 443 | for (auto * smpl : chain->samplers) { |
| 444 | llama_sampler_reset(smpl); |
| 445 | } |
| 446 | |
| 447 | chain->t_sample_us = 0; |
| 448 | chain->n_sample = 0; |
| 449 | } |
| 450 | |
| 451 | static struct llama_sampler * llama_sampler_chain_clone(const struct llama_sampler * smpl) { |
| 452 | const auto * chain_src = (const llama_sampler_chain *) smpl->ctx; |
nothing calls this directly
no test coverage detected