static */
| 439 | }; |
| 440 | |
| 441 | /* static */ Status GraphConstructor::Construct( |
| 442 | const Options& opts, NodeDefSlice node_defs, const VersionDef* versions, |
| 443 | const FunctionDefLibrary* library, Graph* g, ShapeRefiner* refiner, |
| 444 | std::vector<std::pair<Node*, int>>* return_tensors, |
| 445 | std::vector<Node*>* return_nodes, |
| 446 | std::vector<SafeTensorId>* missing_unused_input_map_keys) { |
| 447 | if (versions) { |
| 448 | TF_RETURN_IF_ERROR(CheckVersions(*versions, TF_GRAPH_DEF_VERSION, |
| 449 | TF_GRAPH_DEF_VERSION_MIN_PRODUCER, |
| 450 | "GraphDef", "graph")); |
| 451 | } |
| 452 | NodeDefCopyingGraphConstructor c(opts, node_defs, versions, library, g, |
| 453 | refiner, return_tensors, return_nodes, |
| 454 | missing_unused_input_map_keys); |
| 455 | const Status s = c.TryImport(); |
| 456 | if (!s.ok()) c.Undo(); |
| 457 | return s; |
| 458 | } |
| 459 | |
| 460 | /* static */ Status GraphConstructor::Construct( |
| 461 | const Options& opts, GraphDef&& graph_def, Graph* g, ShapeRefiner* refiner, |
nothing calls this directly
no test coverage detected