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

Method addTokenizer

plugins/wasmedge_llmc/llmc_env.cpp:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22uint32_t LLMCEnv::addTokenizer(Tokenizer *T) noexcept {
23 Tokenizers.push_back(T);
24 return Tokenizers.size() - 1;
25}
26
27Tokenizer *LLMCEnv::getTokenizer(uint32_t Id) noexcept {
28 assert(Id < Tokenizers.size() && "Out of bounds");

Callers 1

bodyImplMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected