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

Method c_rules

common/grammar-parser.cpp:416–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414 }
415
416 std::vector<const llama_grammar_element *> parse_state::c_rules() {
417 std::vector<const llama_grammar_element *> ret;
418 ret.reserve(rules.size());
419 for (const auto & rule : rules) {
420 ret.push_back(rule.data());
421 }
422 return ret;
423 }
424}

Callers 3

mainFunction · 0.45
llama_sampling_initFunction · 0.45
llama_sampling_resetFunction · 0.45

Calls 4

reserveMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45
dataMethod · 0.45

Tested by 1

mainFunction · 0.36