| 22 | namespace tflite { |
| 23 | |
| 24 | string 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 | |
| 31 | void ReadOpsFromModel(const ::tflite::Model* model, |
| 32 | std::vector<string>* builtin_ops, |