| 1429 | } // namespace |
| 1430 | |
| 1431 | Status ConvertGraphDefToGraph(const GraphConstructorOptions& opts, |
| 1432 | const GraphDef& gdef, Graph* g) { |
| 1433 | ShapeRefiner refiner(gdef.versions().producer(), g->op_registry()); |
| 1434 | return GraphConstructor::Construct( |
| 1435 | opts, gdef.node(), &gdef.versions(), &gdef.library(), g, &refiner, |
| 1436 | /*return_tensors=*/nullptr, /*return_nodes=*/nullptr, |
| 1437 | /*missing_unused_input_map_keys=*/nullptr); |
| 1438 | } |
| 1439 | |
| 1440 | Status ConvertGraphDefToGraph(const GraphConstructorOptions& opts, |
| 1441 | GraphDef&& gdef, Graph* g) { |