| 75 | } |
| 76 | |
| 77 | GraphMgr::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 |
nothing calls this directly
no test coverage detected