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

Function GetOperatorBuilderName

tensorflow/compiler/mlir/lite/converter_gen.cc:75–83  ·  view source on GitHub ↗

Returns the builder function name for the given op definition.

Source from the content-addressed store, hash-verified

73
74// Returns the builder function name for the given op definition.
75static inline std::string GetOperatorBuilderName(StringRef op_name) {
76 assert(op_name.startswith("TFL_") && "unexpected op prefix");
77 assert(op_name.endswith("Op") && "unexpected op suffix");
78
79 // E.g., AddOp -> CreateAddOperator
80 std::ostringstream oss;
81 oss << "Create" << op_name.drop_front(4).str() << "erator";
82 return oss.str();
83}
84
85static void EmitOptionBuilders(const RecordKeeper &record_keeper,
86 const std::vector<Record *> &defs,

Callers 2

EmitOperatorBuildersFunction · 0.70
EmitBuildOperatorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected