MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / dump

Function dump

subprojects/llama.cpp/tests/test-sampling.cpp:15–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13extern struct llama_sampler * llama_sampler_init_dry_testing(int32_t context_size, float dry_multiplier, float dry_base, int32_t dry_allowed_length, int32_t dry_penalty_last_n, const std::vector<std::vector<llama_token>>& seq_breakers);
14
15static void dump(const llama_token_data_array * cur_p) {
16 for (size_t i = 0; i < cur_p->size; i++) {
17 printf("%d: %f (%f)\n", cur_p->data[i].id, cur_p->data[i].p, cur_p->data[i].logit);
18 }
19}
20
21#define DUMP(__cur_p) do { printf("%s:%d (%s)\n", __FILE__, __LINE__, __func__); dump((__cur_p)); printf("-\n"); } while(0)
22

Callers 1

dumpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected