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

Method size

tensorflow/core/kernels/lookup_table_op.h:176–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 HashTable(OpKernelContext* ctx, OpKernel* kernel) {}
175
176 size_t size() const override {
177 // return the size of the table only if it's initialized, otherwise 0.
178 if (!is_initialized_) {
179 return 0;
180 }
181 std::atomic_thread_fence(std::memory_order_acquire);
182 return table_ ? table_->size() : 0;
183 }
184
185 Status ExportValues(OpKernelContext* context) override {
186 if (!is_initialized_) {

Callers 14

testHashTableMethod · 0.95
testMultipleSessionsMethod · 0.95
testIdToStringTableMethod · 0.95
testStringToIdTableMethod · 0.95
testInt64ToIdTableMethod · 0.95
ExportValuesMethod · 0.45
DoInsertMethod · 0.45

Calls

no outgoing calls

Tested by 10

testHashTableMethod · 0.76
testMultipleSessionsMethod · 0.76
testIdToStringTableMethod · 0.76
testStringToIdTableMethod · 0.76
testInt64ToIdTableMethod · 0.76