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

Function AddInferredAttr

tensorflow/python/framework/python_op_gen.cc:57–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void AddInferredAttr(const string& indentation, const string& attr_name,
58 const string& value_expression, string* result,
59 std::unordered_map<string, string>* attr_expressions) {
60 strings::StrAppend(result, indentation,
61 AttrVarName(attr_name, attr_expressions), " = ",
62 value_expression, "\n");
63}
64
65string VectorToTuple(const std::vector<string>& l) {
66 if (l.size() == 1) return strings::StrCat("(", l.front(), ",)");

Callers 1

GetEagerFunctionSetupMethod · 0.85

Calls 2

AttrVarNameFunction · 0.85
StrAppendFunction · 0.50

Tested by

no test coverage detected