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

Function FarmhashFingerprint64

tensorflow/core/kernels/fingerprint_op.cc:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void FarmhashFingerprint64(TTypes<uint8, 2>::ConstTensor input,
44 TTypes<uint8, 2>::Matrix output) {
45 DCHECK_EQ(output.dimension(0), input.dimension(0));
46 DCHECK_EQ(output.dimension(1), sizeof(uint64));
47 for (int64 i = 0; i < output.dimension(0); ++i) {
48 const uint64 fingerprint =
49 Fingerprint64({reinterpret_cast<const char*>(&input(i, 0)),
50 static_cast<std::size_t>(input.dimension(1))});
51 CopyToBuffer(fingerprint, &output(i, 0));
52 }
53}
54
55void FarmhashFingerprint64(TTypes<string>::ConstFlat input,
56 TTypes<uint8, 2>::Matrix output) {

Callers 1

ComputeMethod · 0.85

Calls 5

Fingerprint64Function · 0.85
CopyToBufferFunction · 0.70
dimensionMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected