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

Function NormalizeCustomOpName

tensorflow/lite/tools/gen_op_registration.cc:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace tflite {
23
24string NormalizeCustomOpName(const string& op) {
25 string method(op);
26 RE2::GlobalReplace(&method, "([a-z])([A-Z])", "\\1_\\2");
27 std::transform(method.begin(), method.end(), method.begin(), ::toupper);
28 return method;
29}
30
31void ReadOpsFromModel(const ::tflite::Model* model,
32 std::vector<string>* builtin_ops,

Callers 2

GenerateFileContentFunction · 0.85
TEST_FFunction · 0.85

Calls 3

transformFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TEST_FFunction · 0.68