MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / buildOutputMetadata

Function buildOutputMetadata

plugins/wasi_nn/wasinn_bitnet.cpp:1574–1581  ·  view source on GitHub ↗

Generate output metadata.

Source from the content-addressed store, hash-verified

1572
1573// Generate output metadata.
1574std::string buildOutputMetadata(Context &CxtRef) noexcept {
1575 return fmt::format(R"({{"input_tokens": {}, )"
1576 R"("output_tokens": {}, )"
1577 R"("llama_build_number": {}, )"
1578 R"("llama_commit": "{}"}})"sv,
1579 CxtRef.LlamaNInputs, CxtRef.LlamaOutputTokens.size(),
1580 LLAMA_BUILD_NUMBER, LLAMA_COMMIT);
1581}
1582
1583// Generate output embedding.
1584void buildOutputEmbedding(std::string &Embedding, int32_t NEmbd,

Callers 2

getOutputFunction · 0.70
getOutputSingleFunction · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected