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

Function ByteToPiece

external/sentencepiece/src/model_interface.cc:210–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210std::string ByteToPiece(unsigned char c) {
211 return absl::StrFormat("<0x%02X>", c);
212}
213
214int PieceToByte(absl::string_view piece) {
215 using PieceToByteMap = absl::flat_hash_map<std::string, unsigned char>;

Callers 7

AddBytePieceFunction · 0.85
TESTFunction · 0.85
PieceToIdMethod · 0.85
InitMetaPiecesMethod · 0.85
PieceToByteFunction · 0.85

Calls

no outgoing calls

Tested by 3

AddBytePieceFunction · 0.68
TESTFunction · 0.68
PieceToIdMethod · 0.68