| 33 | |
| 34 | |
| 35 | RandomSampler::RandomSampler(dim_t from_topk, float topp, float temperature) |
| 36 | : _from_topk(from_topk) |
| 37 | , _topp(topp) |
| 38 | , _temperature(temperature) { |
| 39 | } |
| 40 | |
| 41 | void RandomSampler::sample(const StorageView& scores, |
| 42 | dim_t num_samples, |
nothing calls this directly
no outgoing calls
no test coverage detected