| 120 | } |
| 121 | |
| 122 | Status SingleMachine::Initialize(const GrapplerItem& item) { |
| 123 | mutex_lock l(this->last_graph_mu_); |
| 124 | if (last_graph_ != &item.graph || last_graph_id_ != item.id) { |
| 125 | init_ops_ = item.init_ops; |
| 126 | expected_init_time_s_ = item.expected_init_time; |
| 127 | last_graph_ = nullptr; |
| 128 | queue_runner_defs_ = item.queue_runners; |
| 129 | last_graph_id_ = item.id; |
| 130 | } |
| 131 | return Status::OK(); |
| 132 | } |
| 133 | |
| 134 | Status SingleMachine::Shutdown() { |
| 135 | TF_RETURN_IF_ERROR(ShutdownSession()); |
no outgoing calls