| 809 | } |
| 810 | |
| 811 | Status Encapsulator::BuildFunctionDefs( |
| 812 | const RewriteSubgraphFn& rewrite_subgraph_fn, bool reuse_existing_functions, |
| 813 | FunctionLibraryDefinition* library) { |
| 814 | for (auto& subgraph_entry : subgraphs_) { |
| 815 | string name = subgraph_entry.first; |
| 816 | Subgraph& subgraph = subgraph_entry.second; |
| 817 | TF_RETURN_IF_ERROR(subgraph.BuildFunctionDef( |
| 818 | name, rewrite_subgraph_fn, reuse_existing_functions, library)); |
| 819 | } |
| 820 | return Status::OK(); |
| 821 | } |
| 822 | |
| 823 | Status Encapsulator::CopyNodesToOutputGraph( |
| 824 | Graph* graph_out, std::unordered_map<const Node*, Node*>* node_images) { |
no test coverage detected