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

Method build_inp_mean

subprojects/llama.cpp/src/llama-graph.cpp:1495–1506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1493}
1494
1495ggml_tensor * llm_graph_context::build_inp_mean() const {
1496 auto inp = std::make_unique<llm_graph_input_mean>(cparams);
1497
1498 auto & cur = inp->mean;
1499
1500 cur = ggml_new_tensor_2d(ctx0, GGML_TYPE_F32, n_tokens, ubatch.n_seqs_unq);
1501 ggml_set_input(cur);
1502
1503 res->add_input(std::move(inp));
1504
1505 return cur;
1506}
1507
1508ggml_tensor * llm_graph_context::build_inp_cls() const {
1509 auto inp = std::make_unique<llm_graph_input_cls>(cparams, arch);

Callers

nothing calls this directly

Calls 3

ggml_new_tensor_2dFunction · 0.85
ggml_set_inputFunction · 0.85
add_inputMethod · 0.80

Tested by

no test coverage detected