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

Method Construct

tensorflow/core/graph/graph_constructor.cc:441–458  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 5

CheckVersionsFunction · 0.85
TryImportMethod · 0.80
UndoMethod · 0.80
okMethod · 0.45
versionsMethod · 0.45

Tested by

no test coverage detected