MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / cache_processor_for_pieces

Function cache_processor_for_pieces

src/framework/tokenizers/sentencepiece.cpp:97–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void cache_processor_for_pieces(const std::vector<SentencePiecePiece> & pieces, ProcessorPtr processor) {
98 const auto fingerprint = fingerprint_pieces(pieces);
99 std::lock_guard<std::mutex> lock(processor_cache_mutex());
100 processor_cache()[fingerprint] = std::move(processor);
101}
102
103} // namespace
104

Callers 1

load_sentencepiece_modelFunction · 0.85

Calls 1

fingerprint_piecesFunction · 0.85

Tested by

no test coverage detected