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

Method AddTensible

tensorflow/core/framework/hash_table/hash_table.cc:129–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void HashTable::AddTensible(
130 TensibleVariable* tensor, std::function<void(Status)> done) {
131 tensor->Ref();
132 AddTask([this, done, tensor] {
133 tensor->Resize(size_, [this, tensor, done] (Status st) {
134 if (st.ok()) {
135 tensors_.push_back(tensor);
136 }
137 done(st);
138 RunNext();
139 });
140 });
141}
142
143HashTable::~HashTable() {
144 for (auto tensor : tensors_) {

Callers 2

TESTFunction · 0.80
ComputeAsyncMethod · 0.80

Calls 4

RefMethod · 0.45
ResizeMethod · 0.45
okMethod · 0.45
push_backMethod · 0.45

Tested by 1

TESTFunction · 0.64