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

Function Fingerprint128

tensorflow/core/platform/fingerprint.h:94–103  ·  view source on GitHub ↗

128-bit variant of Fingerprint64 above (same properties and caveats apply).

Source from the content-addressed store, hash-verified

92
93// 128-bit variant of Fingerprint64 above (same properties and caveats apply).
94inline Fprint128 Fingerprint128(const StringPiece s) {
95#ifdef USE_OSS_FARMHASH
96 const auto fingerprint = ::util::Fingerprint128(s.data(), s.size());
97 return {::util::Uint128Low64(fingerprint),
98 ::util::Uint128High64(fingerprint)};
99#else
100 const auto fingerprint = farmhash::Fingerprint128(s.data(), s.size());
101 return {absl::Uint128Low64(fingerprint), absl::Uint128High64(fingerprint)};
102#endif
103}
104
105} // namespace tensorflow
106

Callers 5

CacheKeyHelperFunction · 0.85
EagerLocalExecuteFunction · 0.85
ComputeMethod · 0.85
TESTFunction · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68