MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / StringToFp

Function StringToFp

tensorflow/core/lib/strings/numbers.cc:392–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392bool StringToFp(const string& s, Fprint* fp) {
393 char junk;
394 uint64_t result;
395 if (sscanf(s.c_str(), "%" SCNx64 "%c", &result, &junk) == 1) {
396 *fp = result;
397 return true;
398 } else {
399 return false;
400 }
401}
402
403StringPiece Uint64ToHexString(uint64 v, char* buf) {
404 static const char* hexdigits = "0123456789abcdef";

Callers 1

TESTFunction · 0.85

Calls 1

c_strMethod · 0.80

Tested by 1

TESTFunction · 0.68