MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / BuildFunctionDefs

Method BuildFunctionDefs

tensorflow/compiler/jit/encapsulate_subgraphs_pass.cc:811–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

809}
810
811Status 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
823Status Encapsulator::CopyNodesToOutputGraph(
824 Graph* graph_out, std::unordered_map<const Node*, Node*>* node_images) {

Callers 1

Calls 1

BuildFunctionDefMethod · 0.80

Tested by

no test coverage detected