MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / dump

Function dump

tests/test-sampling.cpp:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <algorithm>
13
14static void dump(const llama_token_data_array * candidates) {
15 for (size_t i = 0; i < candidates->size; i++) {
16 printf("%d: %f (%f)\n", candidates->data[i].id, candidates->data[i].p, candidates->data[i].logit);
17 }
18}
19
20#define DUMP(__candidates) do { printf("%s:%d (%s)\n", __FILE__, __LINE__, __func__); dump((__candidates)); printf("-\n"); } while(0)
21

Callers 1

dumpMethod · 0.50

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected