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

Method ~Item

tensorflow/core/distributed_runtime/graph_mgr.cc:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77GraphMgr::Item::~Item() {
78 for (const auto& unit : this->units) {
79 CHECK_NOTNULL(unit.device);
80 if (!graph_mgr->skip_cost_models_) {
81 graph_mgr->cost_model_manager_.RemoveCostModelForGraph(unit.graph);
82 }
83 delete unit.root;
84 unit.device->op_segment()->RemoveHold(this->session);
85 }
86}
87
88// NOTE: node->device_name() is not set by GraphConstructor. We
89// expects that NodeDef in GraphDef given to workers fully specifies

Callers

nothing calls this directly

Calls 3

RemoveHoldMethod · 0.80
op_segmentMethod · 0.80

Tested by

no test coverage detected