| 69 | } |
| 70 | |
| 71 | bool 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 | |
| 81 | class GraphConstructor { |
| 82 | public: |
no test coverage detected