| 20 | namespace tflite { |
| 21 | |
| 22 | bool IsFlexOp(const char* custom_name) { |
| 23 | return custom_name && strncmp(custom_name, kFlexCustomCodePrefix, |
| 24 | strlen(kFlexCustomCodePrefix)) == 0; |
| 25 | } |
| 26 | |
| 27 | TfLiteIntArray* ConvertVectorToTfLiteIntArray(const std::vector<int>& input) { |
| 28 | return ConvertArrayToTfLiteIntArray(static_cast<int>(input.size()), |