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

Method build_inp_cls

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

Source from the content-addressed store, hash-verified

1506}
1507
1508ggml_tensor * llm_graph_context::build_inp_cls() const {
1509 auto inp = std::make_unique<llm_graph_input_cls>(cparams, arch);
1510
1511 auto & cur = inp->cls;
1512
1513 cur = ggml_new_tensor_1d(ctx0, GGML_TYPE_I32, ubatch.n_seqs_unq);
1514 ggml_set_input(cur);
1515
1516 res->add_input(std::move(inp));
1517
1518 return cur;
1519}
1520
1521ggml_tensor * llm_graph_context::build_inp_cross_embd() const {
1522 auto inp = std::make_unique<llm_graph_input_cross_embd>(cross);

Callers

nothing calls this directly

Calls 3

ggml_new_tensor_1dFunction · 0.85
ggml_set_inputFunction · 0.85
add_inputMethod · 0.80

Tested by

no test coverage detected