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

Function SummarizeNodeDef

tensorflow/core/framework/node_def_util.cc:102–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100string SummarizeNode(const Node& node) { return SummarizeNodeDef(node.def()); }
101
102string SummarizeNodeDef(const NodeDef& node_def) {
103 string ret = strings::StrCat(errors::FormatNodeNameForError(node_def.name()),
104 " = ", node_def.op(), "[");
105 strings::StrAppend(&ret, SummarizeAttrsHelper(node_def, node_def.device()));
106 strings::StrAppend(&ret, "](");
107
108 // Output inputs, including control inputs, verbatim.
109 bool first = true;
110 for (const string& input : node_def.input()) {
111 if (!first) strings::StrAppend(&ret, ", ");
112 first = false;
113 strings::StrAppend(&ret, input);
114 }
115 strings::StrAppend(&ret, ")");
116 return ret;
117}
118
119string SummarizeAttrs(const NodeDef& node_def) {
120 return SummarizeAttrsHelper(node_def, node_def.device());

Callers 15

SortByExecutionOrderFunction · 0.85
ComputeMethod · 0.85
ExpectInvalidMethod · 0.85
ExpectTypeMismatchMethod · 0.85
ExpectFailuresMethod · 0.85
ExpectInvalidMethod · 0.85
CreateOpKernelFunction · 0.85
SummarizeGraphDefFunction · 0.85
SummarizeNodeMethod · 0.85
SummarizeNodeFunction · 0.85
ExpectSuccessFunction · 0.85
ExpectFailureFunction · 0.85

Calls 8

FormatNodeNameForErrorFunction · 0.85
SummarizeAttrsHelperFunction · 0.85
nameMethod · 0.65
StrCatFunction · 0.50
StrAppendFunction · 0.50
opMethod · 0.45
deviceMethod · 0.45
inputMethod · 0.45

Tested by 10

ComputeMethod · 0.68
ExpectInvalidMethod · 0.68
ExpectTypeMismatchMethod · 0.68
ExpectFailuresMethod · 0.68
ExpectInvalidMethod · 0.68
ExpectSuccessFunction · 0.68
ExpectFailureFunction · 0.68
TESTFunction · 0.68
ExpectValidSyntaxFunction · 0.68
ExpectInvalidSyntaxFunction · 0.68