MCPcopy Create free account
hub / github.com/alibaba/MNN / StringRef

Class StringRef

transformers/llm/engine/src/tokenizer/tokenizer.cpp:1472–1477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1470}
1471
1472struct StringRef {
1473 const char* ptr;
1474 uint16_t len;
1475 std::string str() const { return std::string(ptr, len); }
1476 bool operator==(const StringRef& o) const { return len == o.len && memcmp(ptr, o.ptr, len) == 0; }
1477};
1478
1479struct VocabEntry {
1480 const char* str;

Callers 1

dumpTensorScalesMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected