| 315 | } |
| 316 | |
| 317 | Status Scope::ToGraph(Graph* g, GraphConstructorOptions opts) const { |
| 318 | if (ok()) { |
| 319 | GraphDef graph_def; |
| 320 | graph()->ToGraphDef(&graph_def); |
| 321 | UpdateStatus(ConvertGraphDefToGraph(opts, std::move(graph_def), g)); |
| 322 | } |
| 323 | return *impl()->status_; |
| 324 | } |
| 325 | |
| 326 | void Scope::UpdateBuilder(NodeBuilder* builder) const { |
| 327 | std::vector<Node*> control_inputs; |