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

Function Fingerprint64

tensorflow/core/platform/fingerprint.h:80–91  ·  view source on GitHub ↗

This is a portable fingerprint interface for strings that will never change. However, it is not suitable for cryptography.

Source from the content-addressed store, hash-verified

78// This is a portable fingerprint interface for strings that will never change.
79// However, it is not suitable for cryptography.
80inline uint64 Fingerprint64(const StringPiece s) {
81#ifdef USE_OSS_FARMHASH
82 return ::util::Fingerprint64(s.data(), s.size());
83#else
84 // Fingerprint op depends on the fact that Fingerprint64() is implemented by
85 // Farmhash. If the implementation ever changes, Fingerprint op should be
86 // modified to keep using Farmhash.
87 // LINT.IfChange
88 return farmhash::Fingerprint64(s.data(), s.size());
89 // LINT.ThenChange(//third_party/tensorflow/core/kernels/fingerprint_op.cc)
90#endif
91}
92
93// 128-bit variant of Fingerprint64 above (same properties and caveats apply).
94inline Fprint128 Fingerprint128(const StringPiece s) {

Callers 15

FeatureMethod · 0.85
ProgramDescriptorMethod · 0.85
RunningSignBitFunction · 0.85
CalcFeatureFunction · 0.85
EvalFunction · 0.85
CompilationCacheKeyFunction · 0.85
RewriteSubgraphFunction · 0.85
NextItemMethod · 0.85
TESTFunction · 0.85
BM_Hash64FarmFunction · 0.85
FarmhashFingerprint64Function · 0.85
FeatureMethod · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by 7

CalcFeatureFunction · 0.68
TESTFunction · 0.68
BM_Hash64FarmFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
RunFillFunction · 0.68
CalculateKeysFunction · 0.68