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

Function ValidateGraphDef

tensorflow/core/graph/validate.cc:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace graph {
30
31Status ValidateGraphDef(const GraphDef& graph_def,
32 const OpRegistryInterface& op_registry) {
33 Status s;
34 const int version = graph_def.versions().producer();
35 for (const NodeDef& node_def : graph_def.node()) {
36 // Look up the OpDef for the node_def's op name.
37 const OpDef* op_def;
38 TF_RETURN_IF_ERROR(op_registry.LookUpOpDef(node_def.op(), &op_def));
39 TF_RETURN_IF_ERROR(ValidateNodeDef(node_def, *op_def));
40 TF_RETURN_IF_ERROR(CheckOpDeprecation(*op_def, version));
41 }
42
43 return s;
44}
45
46Status ValidateGraphDefAgainstOpRegistry(
47 const GraphDef& graph_def, const OpRegistryInterface& op_registry) {

Callers 4

ExtendMethod · 0.85
TESTFunction · 0.85
InitItemMethod · 0.85

Calls 6

ValidateNodeDefFunction · 0.85
CheckOpDeprecationFunction · 0.85
LookUpOpDefMethod · 0.80
versionsMethod · 0.45
nodeMethod · 0.45
opMethod · 0.45

Tested by 1

TESTFunction · 0.68