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

Function IsValidNodeName

tensorflow/core/graph/graph_constructor.cc:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71bool IsValidNodeName(StringPiece s, bool allow_internal_ops) {
72 using ::tensorflow::strings::Scanner;
73 return Scanner(s)
74 .One(allow_internal_ops ? Scanner::LETTER_DIGIT_DOT_UNDERSCORE
75 : Scanner::LETTER_DIGIT_DOT)
76 .Any(Scanner::LETTER_DIGIT_DASH_DOT_SLASH_UNDERSCORE)
77 .Eos()
78 .GetResult();
79}
80
81class GraphConstructor {
82 public:

Callers 2

BuildNodeIndexMethod · 0.85

Calls 3

ScannerClass · 0.85
GetResultMethod · 0.45
OneMethod · 0.45

Tested by

no test coverage detected