| 91 | } |
| 92 | |
| 93 | Status ClientSession::Impl::MaybeExtendGraph() const { |
| 94 | mutex_lock l(mu_); |
| 95 | int num_nodes = graph_->num_node_ids(); |
| 96 | if (num_nodes > last_num_graph_nodes_) { |
| 97 | GraphDef graph_def; |
| 98 | graph_->ToGraphDefSubRange(&graph_def, last_num_graph_nodes_); |
| 99 | last_num_graph_nodes_ = num_nodes; |
| 100 | return session_->Extend(graph_def); |
| 101 | } |
| 102 | return Status::OK(); |
| 103 | } |
| 104 | |
| 105 | Status ClientSession::Run(const RunOptions& run_options, const FeedType& inputs, |
| 106 | const std::vector<Output>& fetch_outputs, |
no test coverage detected