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

Function AddBytePiece

external/sentencepiece/src/model_interface_test.cc:57–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void AddBytePiece(ModelProto *model_proto, unsigned char byte) {
58 auto *sp = model_proto->add_pieces();
59 sp->set_piece(ByteToPiece(byte));
60 sp->set_type(ModelProto::SentencePiece::BYTE);
61}
62
63TEST(ModelInterfaceTest, GetDefaultPieceTest) {
64 {

Callers 1

TESTFunction · 0.85

Calls 4

ByteToPieceFunction · 0.85
set_typeMethod · 0.80
add_piecesMethod · 0.45
set_pieceMethod · 0.45

Tested by

no test coverage detected