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

Method MakeReviserFn

tensorflow/core/framework/hash_table/hash_table.cc:620–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620std::function<void(int64*,size_t)> CoalescedHashTable::MakeReviserFn(
621 const string& name) {
622 string child_name = ChildName(name);
623 int64 index = index_map_[child_name];
624 auto fn = [index] (int64* keys, size_t sz) {
625 for (size_t i = 0; i < sz; ++i) {
626 keys[i] = Encode(keys[i], index);
627 }
628 };
629 return fn;
630}
631
632void CoalescedHashTable::ClearChildren(
633 const std::vector<string>& table_names,

Callers 1

Calls 1

EncodeFunction · 0.70

Tested by

no test coverage detected