| 25 | } |
| 26 | |
| 27 | TfLiteIntArray* ConvertVectorToTfLiteIntArray(const std::vector<int>& input) { |
| 28 | return ConvertArrayToTfLiteIntArray(static_cast<int>(input.size()), |
| 29 | input.data()); |
| 30 | } |
| 31 | |
| 32 | TfLiteIntArray* ConvertArrayToTfLiteIntArray(const int rank, const int* dims) { |
| 33 | TfLiteIntArray* output = TfLiteIntArrayCreate(rank); |