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

Method print_test

examples/llama-bench/llama-bench.cpp:923–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921 }
922
923 void print_test(const test & t) override {
924 fprintf(fout, "INSERT INTO test (%s) ", join(test::get_fields(), ", ").c_str());
925 fprintf(fout, "VALUES (");
926 std::vector<std::string> values = t.get_values();
927 for (size_t i = 0; i < values.size(); i++) {
928 fprintf(fout, "'%s'%s", values.at(i).c_str(), i < values.size() - 1 ? ", " : "");
929 }
930 fprintf(fout, ");\n");
931 }
932};
933
934static void test_prompt(llama_context * ctx, int n_prompt, int n_past, int n_batch, int n_threads) {

Callers

nothing calls this directly

Calls 5

fprintfFunction · 0.85
joinFunction · 0.70
c_strMethod · 0.45
get_valuesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected