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

Function Match

tensorflow/core/framework/hash_table/hash_table.cc:574–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572constexpr int64 kIndexBase = 0xFFFFFFFFFFFFF;
573
574bool Match(int64 key, int64 index) {
575 return (key >> kIndexLen) == index;
576}
577
578int64 Encode(int64 key, int64 index) {
579 return (key & kIndexBase) | (index << kIndexLen);

Callers 1

ChildSnapshotMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected