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

Function Hash64CombineUnordered

tensorflow/core/lib/hash/hash.h:123–123  ·  view source on GitHub ↗

Combine two hashes in an order-independent way. This operation should be associative and compute the same hash for a collection of elements independent of traversal order. Note that it is better to combine hashes symmetrically with addition rather than XOR, since (x^x) == 0 but (x+x) != 0.

Source from the content-addressed store, hash-verified

121// independent of traversal order. Note that it is better to combine hashes
122// symmetrically with addition rather than XOR, since (x^x) == 0 but (x+x) != 0.
123inline uint64 Hash64CombineUnordered(uint64 a, uint64 b) { return a + b; }
124
125// Hash functor suitable for use with power-of-two sized hashtables. Use
126// instead of std::hash<T>.

Callers 4

ComputeSignatureMethod · 0.85
HashAttrFunction · 0.85
HashSubgraphImplFunction · 0.85
HashSubgraphFunctionImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected