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

Method Snapshot

tensorflow/core/framework/hash_table/hash_table.cc:522–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522std::vector<std::pair<int64, int64>> HashTable::Snapshot() {
523 mutex_lock lock(update_mu_);
524 int64 size = size_;
525 std::vector<std::pair<int64, int64>> ret;
526 for (int64 i = 0; i < num_tables_; ++i) {
527 for (auto iter = tables_[i].begin(); iter != tables_[i].end(); ++iter) {
528 if (iter->second < size) {
529 ret.emplace_back(iter->first, iter->second);
530 }
531 }
532 }
533 return ret;
534}
535
536void HashTable::Snapshot(std::vector<int64>* keys,
537 std::vector<int64>* ids) {

Callers 7

OptimizeHillClimbMethod · 0.45
LOCKS_EXCLUDEDMethod · 0.45
SaveBloomFilterFunction · 0.45
SaveHashTableFunction · 0.45
ComputeAsyncMethod · 0.45
ComputeAsyncMethod · 0.45

Calls 5

beginMethod · 0.45
endMethod · 0.45
emplace_backMethod · 0.45
reserveMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected