Makes a TfLiteIntArray* from std::vector, must free with TfLiteIntFree().
| 24 | |
| 25 | // Makes a TfLiteIntArray* from std::vector, must free with TfLiteIntFree(). |
| 26 | TfLiteIntArray* ConvertVector(const std::vector<int>& x) { |
| 27 | TfLiteIntArray* lite = TfLiteIntArrayCreate(x.size()); |
| 28 | for (size_t i = 0; i < x.size(); i++) lite->data[i] = x[i]; |
| 29 | return lite; |
| 30 | } |
| 31 | |
| 32 | // A very simple test graph that supports setting in/out tensors on nodes. |
| 33 | class SimpleTestGraph : public GraphInfo { |
no test coverage detected