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

Function join_ids

tests/unittests/test_sentencepiece_tokenizer1.cpp:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23std::string join_ids(const std::vector<int32_t> & ids) {
24 std::ostringstream oss;
25 for (size_t i = 0; i < ids.size(); ++i) {
26 if (i > 0) {
27 oss << ",";
28 }
29 oss << ids[i];
30 }
31 return oss.str();
32}
33
34std::string join_piece_window(
35 const std::vector<engine::tokenizers::SentencePiecePiece> & pieces,

Callers 1

require_idsFunction · 0.85

Calls 2

strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected