| 318 | // llama_sampler API |
| 319 | |
| 320 | struct llama_sampler * llama_sampler_init(const struct llama_sampler_i * iface, llama_sampler_context_t ctx) { |
| 321 | return new llama_sampler { |
| 322 | /* .iface = */ iface, |
| 323 | /* .ctx = */ ctx, |
| 324 | }; |
| 325 | } |
| 326 | |
| 327 | const char * llama_sampler_name(const struct llama_sampler * smpl) { |
| 328 | if (!smpl->iface) { |
no outgoing calls
no test coverage detected