| 116 | } |
| 117 | |
| 118 | Status Coordinator::ExportCostGraph(CostGraphDef* cost_graph) const { |
| 119 | mutex_lock l(runners_lock_); |
| 120 | for (auto& t : runners_) { |
| 121 | Status s = t->ExportCostGraph(cost_graph); |
| 122 | if (!s.ok()) { |
| 123 | return s; |
| 124 | } |
| 125 | } |
| 126 | return Status::OK(); |
| 127 | } |
| 128 | |
| 129 | } // namespace tensorflow |