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

Function StripQuote

tensorflow/core/profiler/internal/tfprof_utils.cc:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75namespace {
76string StripQuote(const string& s) {
77 int start = s.find_first_not_of("\"\'");
78 int end = s.find_last_not_of("\"\'");
79 if (start == s.npos || end == s.npos) return "";
80
81 return s.substr(start, end - start + 1);
82}
83
84tensorflow::Status ReturnError(const std::vector<string>& pieces, int idx) {
85 string val;

Callers 1

ParseCmdLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected