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

Method Deregister

tensorflow/core/distributed_runtime/graph_mgr.cc:322–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322Status GraphMgr::Deregister(const string& handle) {
323 Item* item = nullptr;
324 // Removes one item from table_.
325 {
326 mutex_lock l(mu_);
327 auto iter = table_.find(handle);
328 if (iter == table_.end()) {
329 return errors::Aborted("Graph handle is not found: ", handle,
330 ". Possibly, this worker just restarted.");
331 }
332 item = iter->second;
333 table_.erase(iter);
334 }
335 item->Unref();
336 return Status::OK();
337}
338
339Status GraphMgr::DeregisterAll() {
340 std::vector<Item*> items;

Callers 1

DeregisterGraphAsyncMethod · 0.45

Calls 4

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
UnrefMethod · 0.45

Tested by

no test coverage detected