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

Function SanitizeThreadSuffix

tensorflow/core/framework/ops_util.cc:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65string SanitizeThreadSuffix(string suffix) {
66 string clean;
67 for (int i = 0; i < suffix.size(); ++i) {
68 const char ch = suffix[i];
69 if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||
70 (ch >= '0' && ch <= '9') || ch == '_' || ch == '-') {
71 clean += ch;
72 } else {
73 clean += '_';
74 }
75 }
76 return clean;
77}
78
79} // namespace tensorflow

Callers 8

ToBigtableOpMethod · 0.85
SingleMachineMethod · 0.85
ResetSessionMethod · 0.85
MutexMethod · 0.85
TEST_FFunction · 0.85
InitMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.68