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

Function IsValidContainerName

tensorflow/core/framework/resource_mgr.cc:267–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267static bool IsValidContainerName(StringPiece s) {
268 using ::tensorflow::strings::Scanner;
269 return Scanner(s)
270 .One(Scanner::LETTER_DIGIT_DOT)
271 .Any(Scanner::LETTER_DIGIT_DASH_DOT_SLASH)
272 .Eos()
273 .GetResult();
274}
275
276Status ContainerInfo::Init(ResourceMgr* rmgr, const NodeDef& ndef,
277 bool use_node_name_as_default) {

Callers 1

InitMethod · 0.85

Calls 3

ScannerClass · 0.85
GetResultMethod · 0.45
OneMethod · 0.45

Tested by

no test coverage detected