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

Method GetId

tensorflow/core/framework/hash_table/hash_table.cc:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void HashTable::IdsAllocator::GetId(int64* id) {
95 if (free_list_.empty()) {
96 *id = counter_++;
97 return;
98 }
99 *id = free_list_.front();
100 free_list_.pop_front();
101}
102
103void HashTable::IdsAllocator::Clear() {
104 free_list_.clear();

Callers 1

GetIdsWithoutResizeMethod · 0.80

Calls 3

emptyMethod · 0.45
frontMethod · 0.45
pop_frontMethod · 0.45

Tested by

no test coverage detected