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

Method check

smallthinker/tests/test-sampling.cpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 void check() {
50 GGML_ASSERT(cur_p.size == probs_expected.size());
51 for (size_t i = 0; i < cur_p.size; i++) {
52 GGML_ASSERT(fabs(cur_p.data[i].p - probs_expected[i]) < 1e-5);
53 }
54 }
55
56 llama_token_data_array cur_p;
57

Callers 10

test_tempFunction · 0.45
test_temp_extFunction · 0.45
test_top_kFunction · 0.45
test_top_pFunction · 0.45
test_min_pFunction · 0.45
test_xtcFunction · 0.45
test_typicalFunction · 0.45
test_penaltiesFunction · 0.45
test_dryFunction · 0.45
test_top_n_sigmaFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected