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

Function AvoidCPPKeywords

tensorflow/cc/framework/cc_op_gen.cc:473–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473string AvoidCPPKeywords(StringPiece name) {
474 if (IsCPPKeyword(name)) {
475 return strings::StrCat(name, "_");
476 }
477 return string(name);
478}
479
480void InferArgAttributes(const OpDef::ArgDef& arg,
481 std::unordered_map<string, string>* inferred_attrs) {

Callers 2

OpInfoMethod · 0.85
GetConstructorBodyMethod · 0.85

Calls 2

IsCPPKeywordFunction · 0.85
StrCatFunction · 0.50

Tested by

no test coverage detected