| 22 | namespace { |
| 23 | |
| 24 | void InitKernelTest(int* argc, char** argv) { |
| 25 | bool use_nnapi = false; |
| 26 | std::vector<tflite::Flag> flags = { |
| 27 | tflite::Flag::CreateFlag("use_nnapi", &use_nnapi, "Use NNAPI"), |
| 28 | }; |
| 29 | tflite::Flags::Parse(argc, const_cast<const char**>(argv), flags); |
| 30 | |
| 31 | if (use_nnapi) { |
| 32 | tflite::SingleOpModel::SetForceUseNnapi(true); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | } // namespace |
| 37 |
no test coverage detected