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

Function AttrVarName

tensorflow/python/framework/python_op_gen.cc:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48constexpr char kEagerFallbackSuffix[] = "_eager_fallback";
49
50string AttrVarName(const string& attr_name,
51 std::unordered_map<string, string>* attr_expressions) {
52 const string var = strings::StrCat("_attr_", attr_name);
53 if (attr_expressions != nullptr) (*attr_expressions)[attr_name] = var;
54 return var;
55}
56
57void AddInferredAttr(const string& indentation, const string& attr_name,
58 const string& value_expression, string* result,

Callers 4

AddInferredAttrFunction · 0.85
FlattenInputsMethod · 0.85
CodeMethod · 0.85
AddEagerInferredAttrsMethod · 0.85

Calls 1

StrCatFunction · 0.50

Tested by

no test coverage detected