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

Function FormatNodeNameForError

tensorflow/core/lib/core/errors.h:129–131  ·  view source on GitHub ↗

Produces a formatted string pattern from the name which can uniquely identify this node upstream to produce an informative error message. The pattern followed is: {{node }} Note: The pattern below determines the regex _NODEDEF_NAME_RE in the file tensorflow/python/client/session.py LINT.IfChange

Source from the content-addressed store, hash-verified

127// tensorflow/python/client/session.py
128// LINT.IfChange
129inline string FormatNodeNameForError(const string& name) {
130 return strings::StrCat("{{node ", name, "}}");
131}
132// LINT.ThenChange(//tensorflow/python/client/session.py)
133template <typename T>
134string FormatNodeNamesForError(const T& names) {

Callers 5

SummarizeNodeDefFunction · 0.85
FormatNodeForErrorFunction · 0.85
GetDevicesForNodeMethod · 0.85
InitializeMemberMethod · 0.85
FormatNodeNamesForErrorFunction · 0.85

Calls 1

StrCatFunction · 0.50

Tested by

no test coverage detected